Function at 0x5d1330
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x64d95c
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x120]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
call fcn.00405660
mov eax, ebp
lea esi, [esp + 0xb8]
mov dword [esp + 0x118], ebx
call fcn.005b70c0
mov dword [esp + 0x14], eax
lea esi, [esp + 0x80]
mov byte [esp + 0x118], 1
call fcn.005b5940
push eax
mov edi, str.cached_
lea esi, [esp + 0x68]
mov byte [esp + 0x11c], 2
call fcn.0041fc00
mov byte [esp + 0x11c], 3
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea esi, [esp + 0xa8]
call fcn.004472a0
push eax
mov edi, str..wav
lea esi, [esp + 0xe4]
mov byte [esp + 0x128], 4
call fcn.0041fc00
add esp, 0x10
mov edi, 0x10
cmp dword [esp + 0xb4], edi
jb 0x5d1436
mov edx, dword [esp + 0xa0]
push edx
call fcn.0062414c
add esp, 4
mov esi, 0xf
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x7c], edi
jb 0x5d1463
mov eax, dword [esp + 0x68]
push eax
call fcn.0062414c
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x98], edi
jb 0x5d1488
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0062414c
add esp, 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov byte [esp + 0x118], 9
cmp dword [esp + 0xd0], edi
jb 0x5d14be
mov edx, dword [esp + 0xbc]
push edx
call fcn.0062414c
add esp, 4
mov dword [esp + 0xd0], esi
lea eax, [esp + 0xd4]
lea esi, [esp + 0x48]
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
call fcn.005b70e0
push eax
mov byte [esp + 0x11c], 0xa
call fcn.005b6fa0
add esp, 4
mov byte [esp + 0x118], 9
cmp dword [esp + 0x60], edi
jb 0x5d150f
mov eax, dword [esp + 0x4c]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0xec], edi
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jae 0x5d1536
lea eax, [esp + 0xd8]
mov ecx, dword [0x6ba118]
mov edx, dword [ecx + 0x18]
push ebx
push ebx
push eax
push 0xffffffffffffffff
call edx
mov edi, eax
cmp edi, ebx
jne 0x5d17c6
push ebp
mov edi, str..ogg
lea esi, [esp + 0x4c]
call fcn.0041fc00
add esp, 4
mov esi, 0x10
mov byte [esp + 0x118], 0xb
cmp dword [eax + 0x18], esi
jb 0x5d1579
mov eax, dword [eax + 4]
jmp 0x5d157c
add eax, 4
push ebx
push ebx
push eax
mov eax, dword [0x6ba118]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call ecx
mov byte [esp + 0x118], 9
cmp dword [esp + 0x60], esi
mov edi, eax
jb 0x5d15a8
mov edx, dword [esp + 0x4c]
push edx
call fcn.0062414c
add esp, 4
cmp edi, ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
je 0x5d17c6
mov eax, dword [0x6ba118]
mov ecx, dword [eax + 0x38]
push edi
call ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
mov esi, eax
mov eax, dword [0x6ba118]
push edx
mov dword [esp + 0x34], ebx
mov ecx, dword [eax + 0x34]
push edi
call ecx
mov edx, esi
and dl, 0x20
neg dl
mov eax, esi
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], ebp
push edi
sbb edx, edx
and al, 8
add edx, 2
neg al
movzx ecx, dx
mov dword [esp + 0x34], ecx
movzx ecx, cx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
movzx eax, ax
mov dword [esp + 0x2c], eax
movzx eax, ax
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx eax, ax
movzx edx, ax
imul edx, ebp
mov dword [esp + 0x20], eax
mov eax, dword [0x6ba118]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 0x30]
call ecx
movzx edx, word [esp + 0x1c]
imul eax, edx
lea ecx, [eax + 0x24]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [0x6ba118]
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x24]
push edi
call eax
test al, al
je 0x5d17c6
mov eax, dword [esp + 0xd8]
mov ebp, 0x10
cmp dword [esp + 0xec], ebp
jae 0x5d16a3
lea eax, [esp + 0xd8]
push 0x6653b0
push eax
call fcn.00624db9
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5d17a6
push esi
push 4
push 1
push str.RIFF
call fcn.006252d0
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.006252d0
push esi
push 4
push 1
push str.WAVE
call fcn.006252d0
push esi
push 4
push 1
push str.fmt
mov dword [esp + 0x58], ebp
call fcn.006252d0
add esp, 0x40
push esi
push 4
lea edx, [esp + 0x20]
push 1
push edx
call fcn.006252d0
push esi
push 1
lea eax, [esp + 0x58]
push 2
push eax
call fcn.006252d0
push esi
push 1
lea ecx, [esp + 0x58]
push 2
push ecx
call fcn.006252d0
push esi
push 1
lea edx, [esp + 0x70]
push 4
push edx
call fcn.006252d0
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.006252d0
push esi
push 1
lea ecx, [esp + 0x34]
push 2
push ecx
call fcn.006252d0
push esi
push 1
lea edx, [esp + 0x50]
push 2
push edx
call fcn.006252d0
push esi
push 4
push 1
push str.data
call fcn.006252d0
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
call fcn.006252d0
mov ecx, dword [esp + 0x30]
push esi
push ecx
mov edx, dword [esp + 0x2c]
push 1
push edx
call fcn.006252d0
push esi
call fcn.00624e3e
add esp, 0x24
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [0x6ba118]
push edx
mov edx, dword [ecx + 0x28]
push eax
push edi
call edx
mov esi, 0x10
cmp dword [esp + 0xec], esi
jb 0x5d17e4
mov eax, dword [esp + 0xd8]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x108], esi
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x5d1816
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0062414c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00626d59
add esp, 0x108
ret 4