Function at 0x562800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x562831
cmp dword [ebp + 8], 0
jb 0x562831
cmp dword [ebp + 8], 0x100
jb 0x562838
xor al, al
jmp 0x562c93
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + edx*4 + 0x2008]
mov dword [ebp - 0x44], ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + edx*4 + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ecx]
push edx
mov ecx, dword [eax + 0x2c]
call ecx
test eax, eax
je 0x562883
xor al, al
jmp 0x562c93
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x18], 0x10
jb 0x562897
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x70], ecx
jmp 0x5628a0
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp - 0x70], edx
push 0x609f20
mov eax, dword [ebp - 0x70]
push eax
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
ja 0x5628e9
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + eax*4 + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + eax*4 + 4]
mov ecx, dword [edx]
push eax
mov edx, dword [ecx + 0x4c]
call edx
xor al, al
jmp 0x562c93
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x44]
add eax, 0x24
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
push 4
push 1
push str.RIFF
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
push 4
push 1
push str.WAVE
call fcn.005ccec6
add esp, 0x10
lea edx, [ebp - 0x50]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + eax*4 + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + eax*4 + 4]
mov ecx, dword [edx]
push eax
mov edx, dword [ecx + 0x14]
call edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.005b97ec
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 8], ecx
push 0x12
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.005ccbd0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + edx*4 + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ecx]
push edx
mov ecx, dword [eax + 0x14]
call ecx
mov edx, 1
mov word [ebp - 4], dx
mov eax, dword [ebp - 8]
mov cx, word [eax + 2]
mov word [ebp - 0x10], cx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 0xe]
mov word [ebp - 0x20], dx
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp - 0x10]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [ebp - 0x24], ax
movzx edx, word [ebp - 0x24]
imul edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.005cb017
add esp, 4
mov dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x18]
push edx
push 4
push 1
push str.fmt
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
push 4
push 1
lea ecx, [ebp - 0x14]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
push 1
push 2
lea eax, [ebp - 4]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
push 1
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
push 1
push 4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
push 1
push 4
lea eax, [ebp - 0x40]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
push 1
push 2
lea edx, [ebp - 0x24]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
push 1
push 2
lea ecx, [ebp - 0x20]
push ecx
call fcn.005ccec6
add esp, 0x10
push 8
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.005ccbd0
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.00562780
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x68], eax
mov cx, word [ebp - 0x68]
mov word [ebp - 0x30], cx
movzx edx, word [ebp - 0x30]
add edx, 0xa
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
push eax
push 4
push 1
push str.dep
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
push 1
push 2
lea ecx, [ebp - 0x30]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x18], 0x10
jb 0x562b34
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x74], ecx
jmp 0x562b3d
mov edx, dword [ebp + 0x10]
add edx, 4
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x30]
push ecx
push 1
mov edx, dword [ebp - 0x74]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
push 1
push 8
lea ecx, [ebp - 0x4c]
push ecx
call fcn.005ccec6
add esp, 0x10
mov dword [ebp - 0x14], 1
mov byte [ebp - 9], 0xf7
mov edx, dword [ebp - 0x18]
push edx
push 4
push 1
push str.xor
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
push 1
push 4
lea ecx, [ebp - 0x14]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
push 1
push 1
lea eax, [ebp - 9]
push eax
call fcn.005ccec6
add esp, 0x10
mov dword [ebp - 0x54], 0
jmp 0x562bc2
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x1c]
jae 0x562be3
movzx eax, byte [ebp - 9]
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x54]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x54]
mov byte [eax], dl
jmp 0x562bb9
mov ecx, dword [ebp - 0x18]
push ecx
push 4
push 1
push 0x618ef8
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
push 1
push 4
lea eax, [ebp - 0x44]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
mov eax, dword [ebp - 0x28]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005cc711
add esp, 4
mov dword [ebp - 0x58], 0
jmp 0x562c40
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x1c]
jae 0x562c61
movzx ecx, byte [ebp - 9]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x58]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x58]
mov byte [ecx], al
jmp 0x562c37
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + ecx*4 + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [eax]
push ecx
mov eax, dword [edx + 0x4c]
call eax
test eax, eax
je 0x562c91
xor al, al
jmp 0x562c93
mov al, 1
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 0xc