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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487986
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.0046ae00
mov eax, dword [0x4ae498]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1078], ecx
mov eax, 1
test eax, eax
je 0x41450f
mov ecx, dword [ebp - 0x1078]
add ecx, 0x74
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x1000
lea eax, [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x1078]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x414381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x106c], eax
cmp dword [ebp - 0x106c], 0x6d
jne 0x4142f3
jmp 0x41450f
mov eax, dword [ebp - 0x1078]
mov ecx, dword [eax + 0x84]
mov dword [ebp - 0x1074], ecx
mov ecx, dword [ebp - 0x1078]
call fcn.00439150
mov dword [ebp - 0x1070], eax
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x1074]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x1020], eax
cmp dword [ebp - 0x1020], 1
jne 0x41434d
mov eax, dword [ebp - 0x1078]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x41450f
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1078]
add eax, 0x74
push eax
mov ecx, dword [ebp - 0x1078]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41437c
cmp dword [ebp - 0x14], 0
jne 0x414381
jmp 0x41450f
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00401d70
mov dword [ebp - 4], 0
push 0x49d9fc
lea ecx, [ebp - 0x103c]
call fcn.00401d70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x103c]
push ecx
lea edx, [ebp - 0x1060]
push edx
mov ecx, dword [ebp - 0x1078]
call fcn.00414530
mov byte [ebp - 0x103d], al
mov eax, dword [ebp - 0x1078]
add eax, 0x74
push eax
lea ecx, [ebp - 0x1044]
push ecx
lea ecx, [ebp - 0x103c]
call fcn.00401ee0
add eax, 1
push eax
lea ecx, [ebp - 0x103c]
call fcn.00402050
push eax
mov edx, dword [ebp - 0x1078]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1078]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x1068], edx
mov ecx, dword [ebp - 0x1078]
call fcn.00439150
mov dword [ebp - 0x1064], eax
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1068]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x1020], eax
cmp dword [ebp - 0x1020], 1
jne 0x414487
mov ecx, dword [ebp - 0x1078]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x103c]
call fcn.00401db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1060]
call fcn.00401db0
jmp 0x41450f
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1078]
add ecx, 0x74
push ecx
mov edx, dword [ebp - 0x1078]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4144c6
lea ecx, [ebp - 0x103c]
call fcn.00401ee0
add eax, 1
cmp eax, dword [ebp - 0x1044]
je 0x4144e9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x103c]
call fcn.00401db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1060]
call fcn.00401db0
jmp 0x41450f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x103c]
call fcn.00401db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1060]
call fcn.00401db0
jmp 0x414295
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret