Function at 0x566df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602ca2
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1fc], ecx
push 0
push 0
lea ecx, [ebp - 0x54]
call fcn.004079f0
mov eax, dword [0x611c1c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040aae0
mov dword [ebp - 4], 0
mov edx, dword [0x611c1c]
mov dword [ebp - 0x144], edx
mov byte [ebp - 0x13d], 0x2e
push 1
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x13d]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00406220
mov dword [ebp - 0x30], eax
mov edx, dword [0x611c1c]
mov dword [ebp - 0x14c], edx
mov byte [ebp - 0x145], 0x5c
push 1
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x145]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00406220
mov dword [ebp - 0x150], eax
mov edx, dword [0x611c1c]
mov dword [ebp - 0x158], edx
mov byte [ebp - 0x151], 0x2f
push 1
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0x151]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00406220
cmp dword [ebp - 0x150], eax
jle 0x566f0d
mov edx, dword [0x611c1c]
mov dword [ebp - 0x160], edx
mov byte [ebp - 0x159], 0x5c
push 1
mov eax, dword [ebp - 0x160]
push eax
lea ecx, [ebp - 0x159]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00406220
mov dword [ebp - 0x200], eax
jmp 0x566f3e
mov edx, dword [0x611c1c]
mov dword [ebp - 0x168], edx
mov byte [ebp - 0x161], 0x2f
push 1
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x161]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00406220
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
jge 0x566f54
mov dword [ebp - 0x38], 0
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xac]
push ecx
call fcn.00528800
add esp, 0xc
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x208], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc8]
push eax
call fcn.00525ea0
add esp, 4
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
mov byte [ebp - 4], 2
push str.cached_
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.0040f1e0
add esp, 0xc
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.0040f350
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], edx
mov byte [ebp - 4], 4
push str..wav
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040f1e0
add esp, 0xc
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x100]
call fcn.004079f0
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0xe4]
call fcn.004079f0
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.004079f0
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.004079f0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.00528830
add esp, 0xc
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x228]
push edx
call fcn.005286c0
add esp, 4
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x11c]
call fcn.004079f0
cmp dword [ebp - 0x14], 0x10
jb 0x5670ca
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x22c], eax
jmp 0x5670d3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x22c], ecx
push 0
push 0
mov edx, dword [ebp - 0x22c]
push edx
push 0xffffffffffffffff
mov eax, dword [0x6a2f60]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x56743f
push str..ogg
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x138]
push eax
call fcn.0040f1e0
add esp, 0xc
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x1bc]
cmp dword [edx + 0x18], 0x10
jb 0x567142
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x234], ecx
jmp 0x567151
mov edx, dword [ebp - 0x1bc]
add edx, 4
mov dword [ebp - 0x234], edx
push 0
push 0
mov eax, dword [ebp - 0x234]
push eax
push 0xffffffffffffffff
mov ecx, dword [0x6a2f60]
mov edx, dword [ecx + 0x18]
call edx
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.004079f0
cmp dword [ebp - 0x34], 0
je 0x56743f
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [0x6a2f60]
mov edx, dword [ecx + 0x38]
call edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [0x6a2f60]
mov eax, dword [edx + 0x34]
call eax
mov ecx, 1
mov word [ebp - 0x58], cx
mov edx, dword [ebp - 0x74]
and edx, 0x20
neg edx
sbb edx, edx
add edx, 2
mov word [ebp - 0x60], dx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x74]
and ecx, 8
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 0x10
mov word [ebp - 0x78], cx
movzx eax, word [ebp - 0x60]
movzx edx, word [ebp - 0x78]
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [ebp - 0x7c], ax
movzx eax, word [ebp - 0x7c]
imul eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [0x6a2f60]
mov eax, dword [edx + 0x30]
call eax
movzx ecx, word [ebp - 0x7c]
imul eax, ecx
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
add edx, 0x24
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [0x6a2f60]
mov ecx, dword [eax + 0x24]
call ecx
movsx edx, al
test edx, edx
je 0x56743f
cmp dword [ebp - 0x14], 0x10
jb 0x567283
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x238], eax
jmp 0x56728c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x238], ecx
push 0x609f20
mov edx, dword [ebp - 0x238]
push edx
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x56741d
mov eax, dword [ebp - 0x90]
push eax
push 4
push 1
push str.RIFF
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x90]
push ecx
push 1
push 4
lea edx, [ebp - 0x6c]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x90]
push eax
push 4
push 1
push str.WAVE
call fcn.005ccec6
add esp, 0x10
mov dword [ebp - 0x6c], 0x10
mov ecx, dword [ebp - 0x90]
push ecx
push 4
push 1
push str.fmt
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x90]
push edx
push 4
push 1
lea eax, [ebp - 0x6c]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x90]
push ecx
push 1
push 2
lea edx, [ebp - 0x58]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x90]
push eax
push 1
push 2
lea ecx, [ebp - 0x60]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x90]
push edx
push 1
push 4
lea eax, [ebp - 0x80]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x90]
push ecx
push 1
push 4
lea edx, [ebp - 0x84]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x90]
push eax
push 1
push 2
lea ecx, [ebp - 0x7c]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x90]
push edx
push 1
push 2
lea eax, [ebp - 0x78]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x90]
push ecx
push 4
push 1
push 0x618ef8
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x90]
push edx
push 1
push 4
lea eax, [ebp - 0x8c]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
push 1
mov eax, dword [ebp - 0x88]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.005cc711
add esp, 4
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [0x6a2f60]
mov edx, dword [ecx + 0x28]
call edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.004079f0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 4