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

Disassembly:
push 0xffffffffffffffff
push 0x6508fc
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6af168]
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.00401d10
push 1
lea eax, [esp + 0xbc]
push ebp
push eax
mov dword [esp + 0x124], ebx
call fcn.004e7710
mov edi, eax
lea esi, [esp + 0x8c]
mov byte [esp + 0x124], 1
call fcn.004e61a0
push str.cached_
push eax
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x130], 2
call fcn.0044cf70
push edi
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x13c], 3
call fcn.0044d040
push str..wav
push eax
lea eax, [esp + 0x100]
push eax
mov byte [esp + 0x148], 4
call fcn.0044cf70
add esp, 0x30
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jb 0x56af65
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0062493b
add esp, 4
mov edi, 0xf
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x7c], esi
jb 0x56af92
mov edx, dword [esp + 0x68]
push edx
call fcn.0062493b
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x98], esi
jb 0x56afb7
mov eax, dword [esp + 0x84]
push eax
call fcn.0062493b
add esp, 4
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov byte [esp + 0x118], 9
cmp dword [esp + 0xd0], esi
jb 0x56afed
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.0062493b
add esp, 4
push ebx
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.004e7740
push eax
mov byte [esp + 0x128], 0xa
call fcn.004e75f0
add esp, 0x10
mov byte [esp + 0x118], 9
cmp dword [esp + 0x60], esi
jb 0x56b041
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xec], esi
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jae 0x56b064
lea eax, [esp + 0xd8]
mov edx, dword [0x6b9dc4]
push ebx
push ebx
push eax
mov eax, dword [edx + 0x18]
push 0xffffffffffffffff
call eax
mov edi, eax
cmp edi, ebx
jne 0x56b2fd
push str..ogg
lea ecx, [esp + 0x4c]
push ebp
push ecx
call fcn.0044cf70
add esp, 0xc
mov byte [esp + 0x118], 0xb
cmp dword [eax + 0x18], esi
jb 0x56b0a3
mov eax, dword [eax + 4]
jmp 0x56b0a6
add eax, 4
mov edx, dword [0x6b9dc4]
push ebx
push ebx
push eax
mov eax, dword [edx + 0x18]
push 0xffffffffffffffff
call eax
mov byte [esp + 0x118], 9
cmp dword [esp + 0x60], esi
mov edi, eax
jb 0x56b0d3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0062493b
add esp, 4
cmp edi, ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
je 0x56b2fd
mov edx, dword [0x6b9dc4]
mov eax, dword [edx + 0x38]
push edi
call eax
mov edx, dword [0x6b9dc4]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
mov dword [esp + 0x30], ebx
mov eax, dword [edx + 0x34]
push edi
call eax
mov ecx, esi
and cl, 0x20
neg cl
mov edx, esi
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], ebp
push edi
sbb ecx, ecx
and dl, 8
add ecx, 2
neg dl
movzx ecx, cx
mov dword [esp + 0x34], ecx
movzx ecx, cx
sbb edx, edx
and edx, 0xfffffff8
add edx, 0x10
movzx eax, dx
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 + 0x1c], eax
mov eax, dword [0x6b9dc4]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 0x30]
call ecx
movzx edx, word [esp + 0x18]
imul eax, edx
lea ecx, [eax + 0x24]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [0x6b9dc4]
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x24]
push edi
call eax
test al, al
je 0x56b2f8
mov eax, dword [esp + 0xd8]
mov ebp, 0x10
cmp dword [esp + 0xec], ebp
jae 0x56b1d1
lea eax, [esp + 0xd8]
push 0x67d754
push eax
call fcn.006262fc
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x56b2d4
push esi
push 4
push 1
push str.RIFF
call fcn.00627cab
push esi
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
call fcn.00627cab
push esi
push 4
push 1
push str.WAVE
call fcn.00627cab
push esi
push 4
push 1
push str.fmt
mov dword [esp + 0x54], ebp
call fcn.00627cab
add esp, 0x40
push esi
push 4
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.00627cab
push esi
push 1
lea eax, [esp + 0x58]
push 2
push eax
call fcn.00627cab
push esi
push 1
lea ecx, [esp + 0x58]
push 2
push ecx
call fcn.00627cab
push esi
push 1
lea edx, [esp + 0x70]
push 4
push edx
call fcn.00627cab
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.00627cab
push esi
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.00627cab
push esi
push 1
lea edx, [esp + 0x50]
push 2
push edx
call fcn.00627cab
push esi
push 4
push 1
push str.data
call fcn.00627cab
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.00627cab
mov ecx, dword [esp + 0x2c]
push esi
push ecx
mov edx, dword [esp + 0x3c]
push 1
push edx
call fcn.00627cab
push esi
call fcn.006261bc
add esp, 0x24
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [0x6b9dc4]
push edx
mov edx, dword [ecx + 0x28]
push eax
push edi
call edx
mov esi, ebp
jmp 0x56b2fd
mov esi, 0x10
cmp dword [esp + 0xec], esi
jb 0x56b316
mov eax, dword [esp + 0xd8]
push eax
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x108], esi
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x56b348
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0062493b
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.00624940
add esp, 0x108
ret 4