Function at 0x424200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x38]
call fcn.00405dd0
test eax, eax
jne 0x424229
jmp 0x424438
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.0040ebd0
jmp 0x42423f
lea ecx, [ebp - 0x10]
call fcn.004092a0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0040abe0
push eax
lea ecx, [ebp - 0x10]
call fcn.004092c0
movzx ecx, al
test ecx, ecx
je 0x424382
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
add eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f280
mov ecx, dword [eax]
call fcn.00413880
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 4]
mov byte [ecx], dl
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418b34
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
imul edx, edx, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, dword [ebp + 0x10]
push edx
push 1
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00418822
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418b34
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
imul edx, edx, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + edx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040f280
mov edx, dword [eax + 4]
mov ecx, dword [edx + 0x20]
call fcn.0040eb20
lea ecx, [ebp - 0x10]
call fcn.0040f280
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x20]
call fcn.0040eb00
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00418822
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 4
push ecx
call fcn.00418822
add esp, 0x10
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
imul edx, dword [ecx + 4]
push edx
push 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call fcn.00418822
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x424369
push 1
mov ecx, dword [ebp - 0x28]
call fcn.0040eb40
mov dword [ebp - 0x3c], eax
jmp 0x424370
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x424237
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
imul edx, edx, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.0040ebd0
jmp 0x4243b7
lea ecx, [ebp - 0x1c]
call fcn.004092a0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.0040abe0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004092c0
movzx eax, al
test eax, eax
je 0x424438
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edx + ecx + 8], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040f280
mov ecx, dword [eax + 4]
call fcn.00424200
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + edx + 8]
cmp edx, dword [ecx]
jne 0x42442a
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4243af
mov esp, ebp
pop ebp
ret 0x10