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

Disassembly:
push 0xffffffffffffffff
push 0x45555b
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x46dd54]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
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.00437da0
push 0xe4
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.00437da0
push 0xec
lea edx, [esp + 0x138]
push ebx
push edx
call fcn.00437da0
mov eax, dword [edi + 0x1c]
add esp, 0x24
cmp eax, ebx
je 0x415f2d
push ebx
push ebx
push eax
push esi
call fcn.0043afba
mov eax, dword [ebp + 0x5c]
push eax
push 1
lea ecx, [esp + 0x220]
push 0xe4
push ecx
call fcn.0043af06
add esp, 0x20
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x415f52
push ebx
push ebx
push eax
push esi
call fcn.0043afba
push esi
push 1
lea edx, [esp + 0x50]
push 0xe4
push edx
call fcn.0043af06
add esp, 0x20
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x415f7a
push ebx
push ebx
push eax
push esi
call fcn.0043afba
push esi
push 1
lea eax, [esp + 0x134]
push 0xec
push eax
call fcn.0043af06
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 0x415f94
sub eax, edx
push eax
lea ecx, [esp + 0x144]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401d00
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.00413920
cmp dword [esp + 0x34], 0x10
jb 0x415fe3
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041aea7
add esp, 4
cmp ebp, ebx
jne 0x415fec
call fcn.00437128
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x415ff8
cmp ebx, ebp
je 0x415ffd
call fcn.00437128
test ebx, ebx
jne 0x416006
call fcn.00437128
mov ebp, dword [esp + 0x18]
cmp ebp, dword [ebx + 4]
jne 0x416014
call fcn.00437128
mov eax, dword [edi + 0x1c]
test eax, eax
mov ecx, dword [ebp + 0x28]
je 0x416032
mov ecx, dword [edi + 0x18]
test ecx, ecx
mov dword [esp + 0x220], ecx
je 0x41605a
mov dword [esp + 0x54], eax
jmp 0x41605a
cmp dword [edi + 0x20], 0
je 0x41605a
mov eax, dword [edi + 0x18]
mov dword [esp + 0x12c], eax
mov dword [ecx + 0x10], eax
cmp dword [edi + 0x18], 0
je 0x41605a
mov edx, dword [edi + 0x20]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], edx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x41607e
push 0
push 0
push eax
push esi
call fcn.0043afba
push esi
push 1
push 0xe4
lea eax, [esp + 0x224]
push eax
jmp 0x4160a0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4160ae
push 0
push 0
push eax
push esi
call fcn.0043afba
push esi
push 1
push 0xec
lea ecx, [esp + 0x138]
push ecx
call fcn.00436e9a
push esi
call fcn.004387d0
add esp, 0x24
mov edi, dword [edi + 0x18]
test edi, edi
je 0x4160db
push 0
push 0
push edi
push esi
call fcn.0043afba
push esi
push 1
lea edx, [esp + 0x50]
push 0xe4
push edx
call fcn.00436e9a
push esi
call fcn.004387d0
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.00436c82
add esp, 0x2e8
ret 4