Function at 0x405810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
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 - 0x18], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], 0x422461
call fcn.00417da5
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x8427364f
mov esi, 0xdabaaabd
jmp 0x405880
mov dword [ebp - 0x38], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x38]
cmp eax, 0x670ef872
jg 0x405970
cmp eax, 0x63fb1371
jg 0x4059a0
cmp eax, 0x5c50bd93
jg 0x4059b7
cmp eax, 0x3e701e95
jg 0x4059ce
cmp eax, 0x25a476e7
jg 0x4059eb
cmp eax, 0x2223d1c7
jg 0x405a22
cmp eax, 0x4c09a81
jg 0x405a4f
cmp eax, 0xefa1dc19
jg 0x405a5f
cmp eax, 0xe7819a97
jg 0x405a83
cmp eax, 0xe2ea971b
jg 0x405a9a
cmp eax, 0xd73be3ac
jg 0x405ab1
cmp eax, 0xd495f5ce
jg 0x405aec
cmp eax, 0xc09df18b
jg 0x405b03
cmp eax, 0xbe01422a
jg 0x405b1a
cmp eax, 0xbab22f63
jg 0x405b31
cmp eax, 0xb23bddfd
jg 0x405b73
cmp eax, 0xb0448b6b
jg 0x405b95
cmp eax, 0x8427364f
je 0x405bb8
cmp eax, 0x8535df04
jne 0x405bd0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0xb0448b6c
jmp 0x405880
cmp eax, 0x670ef873
jne 0x405880
mov eax, 0x63fb1372
cmp dword [ebp - 0x20], 0
jne 0x405872
mov eax, 0x8535df04
jmp 0x405872
cmp eax, 0x63fb1372
jne 0x405880
mov dword [ebp - 0x38], 0xbab22f64
jmp 0x405880
cmp eax, 0x5c50bd94
jne 0x405880
mov dword [ebp - 0x38], 0x990d45d7
jmp 0x405880
cmp eax, 0x3e701e96
jne 0x405880
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], 0x4c09a82
jmp 0x405880
cmp eax, 0x25a476e8
jne 0x405880
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00402560
mov dword [ebp - 0x38], 0x670ef873
jmp 0x405880
cmp eax, 0x2223d1c8
jne 0x405880
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, esi
sub eax, dword [ebp - 0x30]
add eax, 0x25455543
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x670ef873
jmp 0x405880
cmp eax, 0x4c09a82
jne 0x405880
jmp 0x405be7
cmp eax, 0xefa1dc1a
jne 0x405880
mov al, byte [ebp - 0xd]
test al, al
mov eax, 0xc09df18c
jne 0x405a7b
mov eax, 0x2223d1c8
mov dword [ebp - 0x38], eax
jmp 0x405880
cmp eax, 0xe7819a98
jne 0x405880
mov dword [ebp - 0x38], 0x3e701e96
jmp 0x405880
cmp eax, 0xe2ea971c
jne 0x405880
mov dword [ebp - 0x38], 0x3e701e96
jmp 0x405880
cmp eax, 0xd73be3ad
jne 0x405880
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00417f11
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0xbab22f64
jmp 0x405880
cmp eax, 0xd495f5cf
jne 0x405880
mov dword [ebp - 0x38], 0xb0448b6c
jmp 0x405880
cmp eax, 0xc09df18c
jne 0x405880
mov dword [ebp - 0x38], 0x5c50bd94
jmp 0x405880
cmp eax, 0xbe01422b
jne 0x405880
mov dword [ebp - 0x38], 0x5c50bd94
jmp 0x405880
cmp eax, 0xbab22f64
jne 0x405880
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00417f11
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x20]
setne byte [ebp - 0xd]
mov dword [ebp - 0x38], 0xefa1dc1a
jmp 0x405880
cmp eax, 0xb23bddfe
jne 0x405880
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00417ffd
mov dword [ebp - 0x38], 0xe7819a98
jmp 0x405880
cmp eax, 0xb0448b6c
jne 0x405880
mov eax, 0xb23bddfe
cmp dword [ebp - 0x2c], 0
jne 0x405bb0
mov eax, 0xe7819a98
mov dword [ebp - 0x38], eax
jmp 0x405880
mov eax, 0xd495f5cf
cmp dword [ebp - 0x14], 0
je 0x405bc8
mov eax, 0x25a476e8
mov dword [ebp - 0x38], eax
jmp 0x405880
cmp eax, 0x990d45d7
jne 0x405880
mov dword [ebp - 0x38], 0xb0448b6c
jmp 0x405880
mov eax, dword [ebp - 0xc]
add esp, 0x40
pop esi
pop edi
pop ebp
ret