Function at 0x5ca31e
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x643ffc
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x699fe8]
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.00403e20
mov eax, ebp
lea esi, [esp + 0xb8]
mov dword [esp + 0x118], ebx
call fcn.005b09b0
mov dword [esp + 0x14], eax
lea esi, [esp + 0x80]
mov byte [esp + 0x118], 1
call fcn.005af590
push eax
mov edi, 0x675470
lea esi, [esp + 0x68]
mov byte [esp + 0x11c], 2
call fcn.0041e290
mov byte [esp + 0x11c], 3
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea esi, [esp + 0xa8]
call fcn.0041e340
push eax
mov edi, str..wav
lea esi, [esp + 0xe4]
mov byte [esp + 0x128], 4
call fcn.0041e290
add esp, 0x10
mov edi, 0x10
cmp dword [esp + 0xb4], edi
jb 0x5ca096
mov edx, dword [esp + 0xa0]
push edx
call fcn.0061c19a
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 0x5ca0c3
mov eax, dword [esp + 0x68]
push eax
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x98], edi
jb 0x5ca0e8
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0061c19a
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 0x5ca11e
mov edx, dword [esp + 0xbc]
push edx
call fcn.0061c19a
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.005b09d0
push eax
mov byte [esp + 0x11c], 0xa
call fcn.005b0890
add esp, 4
mov byte [esp + 0x118], 9
cmp dword [esp + 0x60], edi
jb 0x5ca16f
mov eax, dword [esp + 0x4c]
push eax
call fcn.0061c19a
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 0x5ca196
lea eax, [esp + 0xd8]
mov ecx, dword [0x6a9ff8]
mov edx, dword [ecx + 0x18]
push ebx
push ebx
push eax
push 0xffffffffffffffff
call edx
mov edi, eax
cmp edi, ebx
jne 0x5ca426
push ebp
mov edi, str..ogg
lea esi, [esp + 0x4c]
call fcn.0041e290
add esp, 4
mov esi, 0x10
mov byte [esp + 0x118], 0xb
cmp dword [eax + 0x18], esi
jb 0x5ca1d9
mov eax, dword [eax + 4]
jmp 0x5ca1dc
add eax, 4
push ebx
push ebx
push eax
mov eax, dword [0x6a9ff8]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call ecx
mov byte [esp + 0x118], 9
cmp dword [esp + 0x60], esi
mov edi, eax
jb 0x5ca208
mov edx, dword [esp + 0x4c]
push edx
call fcn.0061c19a
add esp, 4
cmp edi, ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
je 0x5ca426
mov eax, dword [0x6a9ff8]
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 [0x6a9ff8]
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 [0x6a9ff8]
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 [0x6a9ff8]
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 0x5ca426
mov eax, dword [esp + 0xd8]
mov ebp, 0x10
cmp dword [esp + 0xec], ebp
jae 0x5ca303
lea eax, [esp + 0xd8]
push 0x6585d8
push eax
call fcn.0061ceb1
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5ca406
push esi
push 4
push 1
push str.RIFF
call fcn.0061d3c8
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.0061d3c8
push esi
push 4
push 1
push str.WAVE
call fcn.0061d3c8
push esi
push 4
push 1
push str.fmt
mov dword [esp + 0x58], ebp
call fcn.0061d3c8
add esp, 0x40
push esi
push 4
lea edx, [esp + 0x20]
push 1
push edx
call fcn.0061d3c8
push esi
push 1
lea eax, [esp + 0x58]
push 2
push eax
call fcn.0061d3c8
push esi
push 1
lea ecx, [esp + 0x58]
push 2
push ecx
call fcn.0061d3c8
push esi
push 1
lea edx, [esp + 0x70]
push 4
push edx
call fcn.0061d3c8
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.0061d3c8
push esi
push 1
lea ecx, [esp + 0x34]
push 2
push ecx
call fcn.0061d3c8
push esi
push 1
lea edx, [esp + 0x50]
push 2
push edx
call fcn.0061d3c8
push esi
push 4
push 1
push str.data
call fcn.0061d3c8
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0061d3c8
mov ecx, dword [esp + 0x30]
push esi
push ecx
mov edx, dword [esp + 0x2c]
push 1
push edx
call fcn.0061d3c8
push esi
call fcn.0061cf36
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 [0x6a9ff8]
push edx
mov edx, dword [ecx + 0x28]
push eax
push edi
call edx
mov esi, 0x10
cmp dword [esp + 0xec], esi
jb 0x5ca444
mov eax, dword [esp + 0xd8]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x108], esi
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
jb 0x5ca476
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0061c19a
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.0061efd1
add esp, 0x108
ret 4