Function at 0x4c9f5c
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cc41c
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov esi, dword [esp + 0x124]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x100]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
call fcn.00401620
push 1
lea eax, [esp + 0xc0]
push esi
push eax
mov dword [esp + 0x128], ebx
call fcn.00472000
mov edi, eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x12c], 1
call fcn.0046cea0
push str.cached_
push eax
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0x138], 2
call fcn.00456db0
push edi
push eax
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x144], 3
call fcn.004287d0
push str..wav
push eax
lea ecx, [esp + 0x108]
push ecx
mov byte [esp + 0x150], 4
call fcn.00456db0
add esp, 0x34
mov ebp, 0x10
cmp dword [esp + 0xb8], ebp
jb 0x4c9cd9
mov edx, dword [esp + 0xa4]
push edx
call fcn.0059e6bb
add esp, 4
mov edi, 0xf
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
cmp dword [esp + 0x80], ebp
jb 0x4c9d09
mov eax, dword [esp + 0x6c]
push eax
call fcn.0059e6bb
add esp, 4
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x9c], ebp
jb 0x4c9d31
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0059e6bb
add esp, 4
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x11c], 9
cmp dword [esp + 0xd4], ebp
jb 0x4c9d67
mov edx, dword [esp + 0xc0]
push edx
call fcn.0059e6bb
add esp, 4
push ebx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.004720d0
push eax
mov byte [esp + 0x12c], 0xa
call fcn.00471ee0
add esp, 0x10
mov byte [esp + 0x11c], 9
cmp dword [esp + 0x64], ebp
jb 0x4c9dbb
mov edx, dword [esp + 0x50]
push edx
call fcn.0059e6bb
add esp, 4
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], ebp
jae 0x4c9dd2
lea eax, [esp + 0xdc]
push ebx
push ebx
push eax
mov eax, dword [0x657fbc]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call ecx
mov edi, eax
cmp edi, ebx
jne 0x4ca064
push str..ogg
lea edx, [esp + 0x50]
push esi
push edx
call fcn.00456db0
add esp, 0xc
mov byte [esp + 0x11c], 0xb
cmp dword [eax + 0x18], ebp
jb 0x4c9e10
mov eax, dword [eax + 4]
jmp 0x4c9e13
add eax, 4
push ebx
push ebx
push eax
mov eax, dword [0x657fbc]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call ecx
mov edi, eax
mov byte [esp + 0x11c], 9
cmp dword [esp + 0x64], ebp
jb 0x4c9e3f
mov edx, dword [esp + 0x50]
push edx
call fcn.0059e6bb
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp edi, ebx
je 0x4ca064
mov eax, dword [0x657fbc]
mov ecx, dword [eax + 0x38]
push edi
call ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [0x657fbc]
push edx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax + 0x34]
push edi
call ecx
mov eax, dword [esp + 0x44]
mov edx, eax
and dl, 0x20
movsx ecx, dl
neg ecx
sbb ecx, ecx
add ecx, 2
test al, 8
mov edx, 0
sete dl
movzx ecx, cx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
movzx ecx, cx
lea edx, [edx*8 + 8]
movzx eax, dx
mov dword [esp + 0x28], 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, esi
mov dword [esp + 0x18], eax
mov eax, dword [0x657fbc]
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 0x30]
push edi
call ecx
movzx edx, word [esp + 0x18]
imul eax, edx
lea ecx, [eax + 0x24]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [0x657fbc]
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 0x4ca064
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], ebp
jae 0x4c9f41
lea eax, [esp + 0xdc]
push 0x5e1a6c
push eax
call fcn.005a1d92
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4ca044
push esi
push 4
push 1
push str.RIFF
call fcn.005a3998
push esi
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
call fcn.005a3998
push esi
push 4
push 1
push str.WAVE
call fcn.005a3998
push esi
push 4
push 1
push str.fmt
mov dword [esp + 0x54], ebp
call fcn.005a3998
add esp, 0x40
push esi
push 4
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.005a3998
push esi
push 1
lea eax, [esp + 0x48]
push 2
push eax
call fcn.005a3998
push esi
push 1
lea ecx, [esp + 0x5c]
push 2
push ecx
call fcn.005a3998
push esi
push 1
lea edx, [esp + 0x74]
push 4
push edx
call fcn.005a3998
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x50]
push 4
push eax
call fcn.005a3998
push esi
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.005a3998
push esi
push 1
lea edx, [esp + 0x50]
push 2
push edx
call fcn.005a3998
push esi
push 4
push 1
push str.data
call fcn.005a3998
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.005a3998
mov ecx, dword [esp + 0x2c]
push esi
push ecx
mov edx, dword [esp + 0x3c]
push 1
push edx
call fcn.005a3998
push esi
call fcn.005a1e20
add esp, 0x24
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [0x657fbc]
push edx
mov edx, dword [ecx + 0x28]
push eax
push edi
call edx
cmp dword [esp + 0xf0], ebp
jb 0x4ca07d
mov eax, dword [esp + 0xdc]
push eax
call fcn.0059e6bb
add esp, 4
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
cmp dword [esp + 0x10c], ebp
jb 0x4ca0af
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.0059e6bb
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.0059e619
add esp, 0x10c
ret 4