; ; FMODAudioEngine::lengthForSound from 0x140059a00 to 0x140059ac6 (198 bytes) ; ; 3 xrefs: ; > SetupSFXPopup::onClose @ 0x14044877d ; > SetupSFXPopup::createSFXWidget @ 0x140448af8 ; > @ 0x1406c5250 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_10], rbx ; +0x0, 0x140059a00 push rdi ; +0x5, 0x140059a05 sub rsp, 40h ; +0x6, 0x140059a06 mov rax, cs:__security_cookie ; +0xa, 0x140059a0a xor rax, rsp ; +0x11, 0x140059a11 mov [rsp+48h+var_10], rax ; +0x14, 0x140059a14 mov rdi, rdx ; +0x19, 0x140059a19 mov rbx, rcx ; +0x1c, 0x140059a1c mov [rsp+48h+var_18], rdx ; +0x1f, 0x140059a1f cmp qword ptr [rdx+18h], 0Fh ; +0x24, 0x140059a24 jbe short loc_140059A2E ; +0x29, 0x140059a29 mov rdx, [rdx] ; +0x2b, 0x140059a2b mov r9, 0CBF29CE484222325h ; +0x2e, 0x140059a2e mov r8, [rdi+10h] ; +0x38, 0x140059a38 xor ecx, ecx ; +0x3c, 0x140059a3c test r8, r8 ; +0x3e, 0x140059a3e jz short loc_140059A63 ; +0x41, 0x140059a41 mov r10, 100000001B3h ; +0x43, 0x140059a43 nop dword ptr [rax] ; +0x4d, 0x140059a4d movzx eax, byte ptr [rcx+rdx] ; +0x50, 0x140059a50 xor r9, rax ; +0x54, 0x140059a54 imul r9, r10 ; +0x57, 0x140059a57 inc rcx ; +0x5b, 0x140059a5b cmp rcx, r8 ; +0x5e, 0x140059a5e jb short loc_140059A50 ; +0x61, 0x140059a61 mov r8, rdi ; +0x63, 0x140059a63 lea rdx, [rsp+48h+var_28] ; +0x66, 0x140059a66 lea rcx, [rbx+180h] ; +0x6b, 0x140059a6b call sub_140063040 ; +0x72, 0x140059a72 cmp qword ptr [rax+8], 0 ; +0x77, 0x140059a77 jz short loc_140059AA4 ; +0x7c, 0x140059a7c mov r8, rdi ; +0x7e, 0x140059a7e lea rdx, [rsp+48h+var_28] ; +0x81, 0x140059a81 lea rcx, [rbx+180h] ; +0x86, 0x140059a86 call sub_1400612C0 ; +0x8d, 0x140059a8d mov rdx, [rax] ; +0x92, 0x140059a92 mov ebx, [rdx+58h] ; +0x95, 0x140059a95 mov rcx, rdi ; +0x98, 0x140059a98 call sub_14003A830 ; +0x9b, 0x140059a9b mov eax, ebx ; +0xa0, 0x140059aa0 jmp short loc_140059AAE ; +0xa2, 0x140059aa2 mov rcx, rdi ; +0xa4, 0x140059aa4 call sub_14003A830 ; +0xa7, 0x140059aa7 xor eax, eax ; +0xac, 0x140059aac mov rcx, [rsp+48h+var_10] ; +0xae, 0x140059aae xor rcx, rsp; StackCookie ; +0xb3, 0x140059ab3 call __security_check_cookie ; +0xb6, 0x140059ab6 mov rbx, [rsp+48h+arg_10] ; +0xbb, 0x140059abb add rsp, 40h ; +0xc0, 0x140059ac0 pop rdi ; +0xc4, 0x140059ac4 retn ; +0xc5, 0x140059ac5