Function at 0x405220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x420461
call fcn.00416755
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0x666df483
jmp 0x405280
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, 0x666df482
jg 0x405370
cmp eax, 0x5f019407
jg 0x4053a0
cmp eax, 0x4fd3076d
jg 0x4053c2
cmp eax, 0x43d59a23
jg 0x4053e5
cmp eax, 0x3c660c56
jg 0x4053fc
cmp eax, 0x2d63a5c8
jg 0x40541e
cmp eax, 0x229df02a
jg 0x405441
cmp eax, 0x17f6ca2c
jg 0x405478
cmp eax, 0x146e741b
jg 0x40549b
cmp eax, 0xe8790219
jg 0x4054b9
cmp eax, 0xcf50244e
jg 0x4054d0
cmp eax, 0xaaacf549
jg 0x4054e7
cmp eax, 0xa2aec74e
jg 0x4054fe
cmp eax, 0x99e9ec9c
jg 0x405515
cmp eax, 0x8e9ed0cd
je 0x405522
cmp eax, 0x8f2cf5e9
jne 0x40552e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.004168c1
mov dword [ebp - 0x28], eax
mov ecx, 0xe879021a
cmp eax, dword [ebp - 0x18]
jne 0x405366
mov ecx, 0x17f6ca2d
mov dword [ebp - 0x30], ecx
jmp 0x405280
cmp eax, 0x666df483
jne 0x405280
mov eax, 0x43d59a24
cmp dword [ebp - 0xc], 0
je 0x40527d
mov eax, 0x229df02b
jmp 0x40527d
cmp eax, 0x5f019408
jne 0x405280
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004169ab
mov dword [ebp - 0x30], 0x3c660c57
jmp 0x405280
cmp eax, 0x4fd3076e
jne 0x405280
mov eax, 0x8f2cf5e9
cmp dword [ebp - 0x18], 0
jne 0x4053dd
mov eax, 0xcf50244f
mov dword [ebp - 0x30], eax
jmp 0x405280
cmp eax, 0x43d59a24
jne 0x405280
mov dword [ebp - 0x30], 0x2d63a5c9
jmp 0x405280
cmp eax, 0x3c660c57
jne 0x405280
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004169ab
mov dword [ebp - 0x30], 0x8e9ed0cd
jmp 0x405280
cmp eax, 0x2d63a5c9
jne 0x405280
mov eax, 0xa2aec74f
cmp dword [ebp - 0x24], 0
jne 0x405439
mov eax, 0x99e9ec9d
mov dword [ebp - 0x30], eax
jmp 0x405280
cmp eax, 0x229df02b
jne 0x405280
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.00402300
mov dword [ebp - 0x30], 0x4fd3076e
jmp 0x405280
cmp eax, 0x17f6ca2d
jne 0x405280
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0x4fd3076e
jmp 0x405280
cmp eax, 0x146e741c
jne 0x405280
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0xaaacf54a
jmp 0x405280
cmp eax, 0xe879021a
jne 0x405280
mov dword [ebp - 0x30], 0x2d63a5c9
jmp 0x405280
cmp eax, 0xcf50244f
jne 0x405280
mov dword [ebp - 0x30], 0x146e741c
jmp 0x405280
cmp eax, 0xaaacf54a
jne 0x405280
mov dword [ebp - 0x30], 0x2d63a5c9
jmp 0x405280
cmp eax, 0xa2aec74f
jne 0x405280
mov dword [ebp - 0x30], 0x3c660c57
jmp 0x405280
cmp eax, 0x99e9ec9d
jne 0x405280
jmp 0x40554c
mov dword [ebp - 0x30], 0x99e9ec9d
jmp 0x405280
cmp eax, 0x93020c3d
jne 0x405280
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0x146e741c
jmp 0x405280
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop edi
pop ebp
ret