Function at 0x4052f0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x419fa8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov dword [eax], 0x435058
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 4], 0x435040
mov edx, dword [ebp - 0x58]
mov dword [edx + 8], 0x43502c
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x3c], 0x43500c
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x40], 0x435000
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x44], 0x435000
push 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x6c
call fcn.004070a0
movzx eax, al
test eax, eax
je 0x40538c
cmp dword [ebp - 0x58], 0
je 0x405365
mov ecx, dword [ebp - 0x58]
add ecx, 0x3c
mov dword [ebp - 0x5c], ecx
jmp 0x40536c
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x6c
call fcn.00409860
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0xcc], 0
je 0x4053b4
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xcc]
push eax
call sub.audioeng.dll_AERT_Free
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0xcc], 0
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0xd4], 0
je 0x4053dc
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xd4]
push ecx
call sub.audioeng.dll_AERT_Free
mov edx, dword [ebp - 0x58]
mov dword [edx + 0xd4], 0
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0xdc], 0
je 0x405404
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xdc]
push edx
call sub.audioeng.dll_AERT_Free
mov eax, dword [ebp - 0x58]
mov dword [eax + 0xdc], 0
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0xe0], 0
je 0x40542c
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xe0]
push eax
call sub.audioeng.dll_AERT_Free
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0xe0], 0
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0xe4], 0
je 0x405454
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xe4]
push ecx
call sub.audioeng.dll_AERT_Free
mov edx, dword [ebp - 0x58]
mov dword [edx + 0xe4], 0
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0xa8], 0
je 0x40547c
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xa8]
push edx
call sub.audioeng.dll_AERT_Free
mov eax, dword [ebp - 0x58]
mov dword [eax + 0xa8], 0
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0xac], 0
je 0x4054a4
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xac]
push eax
call sub.audioeng.dll_AERT_Free
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0xac], 0
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0xb4], 0
je 0x4054cc
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xb4]
push ecx
call sub.audioeng.dll_AERT_Free
mov edx, dword [ebp - 0x58]
mov dword [edx + 0xb4], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x58]
mov dword [eax + 0xb0], 0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xb8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x405518
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.00405790
mov dword [ebp - 0x64], eax
jmp 0x40551f
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0xb8], 0
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0xf0], 0
je 0x4056c6
mov dword [ebp - 4], 0
push 0x401604
mov eax, dword [ebp - 0x58]
add eax, 0x268
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.msvcrt.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x4056c6
push 4
push 0x4015fc
lea edx, [ebp - 0x34]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 8
push 0x4015f0
lea eax, [ebp - 0x2c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x24], 0x10
mov word [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xbb80
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x264]
imul edx, edx, 3
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0x2b
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0x46500
mov word [ebp - 0x1e], 2
mov word [ebp - 0x14], 6
mov word [ebp - 0x12], 0x18
push 4
push 0x4015e8
lea ecx, [ebp - 0x10]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 1
push 0x2c
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x38], 0
jmp 0x40560d
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
cmp eax, dword [edx + 0x260]
jge 0x405664
mov dword [ebp - 0x3c], 0
jmp 0x40562d
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x64
jge 0x405662
mov edx, dword [ebp - 4]
push edx
push 0x400
push 3
mov eax, dword [ebp - 0x3c]
shl eax, 9
shl eax, 1
imul eax, eax, 3
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x58]
add eax, dword [edx + ecx*4 + 0xf4]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
jmp 0x405624
jmp 0x405604
mov dword [ebp - 0x40], 0
jmp 0x405676
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x40]
cmp edx, dword [ecx + 0x25c]
jg 0x4056b9
mov eax, dword [ebp - 4]
push eax
push 0x400
push 3
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x260]
mov eax, dword [ebp - 0x40]
shl eax, 9
shl eax, 1
imul eax, eax, 3
mov ecx, dword [ebp - 0x58]
add eax, dword [ecx + edx*4 + 0xf4]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
jmp 0x40566d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov dword [ebp - 0x44], 0
jmp 0x4056d8
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x5a
jge 0x40571d
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
cmp dword [edx + ecx*4 + 0xf4], 0
je 0x40571b
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + eax*4 + 0xf4]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
mov dword [edx + ecx*4 + 0xf4], 0
jmp 0x4056cf
mov ecx, dword [ebp - 0x58]
add ecx, 0x6c
call fcn.00405770
mov ecx, dword [ebp - 0x58]
add ecx, 0x68
call fcn.00405770
mov ecx, dword [ebp - 0x58]
call fcn.0040b97b
cmp dword [ebp - 0x58], 0
je 0x40574c
mov eax, dword [ebp - 0x58]
add eax, 0x48
mov dword [ebp - 0x68], eax
jmp 0x405753
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x68]
call fcn.00406f80
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ad0d
mov esp, ebp
pop ebp
ret