Function at 0x418df0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4570db
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x470be4]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x470be4]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x300]
push 0xe4
xor ebx, ebx
lea eax, [esp + 0x20c]
mov ebp, ecx
mov esi, dword [ebp + 0x5c]
push ebx
push eax
call fcn.00438ee0
push 0xe4
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.00438ee0
push 0xec
lea edx, [esp + 0x138]
push ebx
push edx
call fcn.00438ee0
mov eax, dword [edi + 0x1c]
add esp, 0x24
cmp eax, ebx
je 0x418e9d
push ebx
push ebx
push eax
push esi
call fcn.0043ca8a
mov eax, dword [ebp + 0x5c]
push eax
push 1
lea ecx, [esp + 0x220]
push 0xe4
push ecx
call fcn.0043c9d6
add esp, 0x20
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x418ec2
push ebx
push ebx
push eax
push esi
call fcn.0043ca8a
push esi
push 1
lea edx, [esp + 0x50]
push 0xe4
push edx
call fcn.0043c9d6
add esp, 0x20
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x418eea
push ebx
push ebx
push eax
push esi
call fcn.0043ca8a
push esi
push 1
lea eax, [esp + 0x134]
push 0xec
push eax
call fcn.0043c9d6
add esp, 0x20
lea eax, [esp + 0x140]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x418f04
sub eax, edx
push eax
lea ecx, [esp + 0x144]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e20
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
add ebp, 0x1a8
push eax
mov ecx, ebp
mov dword [esp + 0x300], ebx
call fcn.004187e0
cmp dword [esp + 0x34], 0x10
jb 0x418f53
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041c4ad
add esp, 4
cmp ebp, ebx
jne 0x418f5c
call fcn.004383bb
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x418f68
cmp ebx, ebp
je 0x418f6d
call fcn.004383bb
test ebx, ebx
jne 0x418f76
call fcn.004383bb
mov ebp, dword [esp + 0x18]
cmp ebp, dword [ebx + 4]
jne 0x418f84
call fcn.004383bb
mov eax, dword [edi + 0x1c]
test eax, eax
mov ecx, dword [ebp + 0x28]
je 0x418fa2
mov ecx, dword [edi + 0x18]
test ecx, ecx
mov dword [esp + 0x220], ecx
je 0x418fca
mov dword [esp + 0x54], eax
jmp 0x418fca
cmp dword [edi + 0x20], 0
je 0x418fca
mov eax, dword [edi + 0x18]
mov dword [esp + 0x12c], eax
mov dword [ecx + 0x10], eax
cmp dword [edi + 0x18], 0
je 0x418fca
mov edx, dword [edi + 0x20]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], edx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x418fee
push 0
push 0
push eax
push esi
call fcn.0043ca8a
push esi
push 1
push 0xe4
lea eax, [esp + 0x224]
push eax
jmp 0x419010
mov eax, dword [edi + 0x20]
test eax, eax
je 0x41901e
push 0
push 0
push eax
push esi
call fcn.0043ca8a
push esi
push 1
push 0xec
lea ecx, [esp + 0x138]
push ecx
call fcn.00439a5a
push esi
call fcn.004397e6
add esp, 0x24
mov edi, dword [edi + 0x18]
test edi, edi
je 0x41904b
push 0
push 0
push edi
push esi
call fcn.0043ca8a
push esi
push 1
lea edx, [esp + 0x50]
push 0xe4
push edx
call fcn.00439a5a
push esi
call fcn.004397e6
add esp, 0x24
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00438282
add esp, 0x2e8
ret 4