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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b670
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4810f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
cmp dword [ebp + 8], 0
je 0x41429d
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4142a4
xor al, al
jmp 0x41469f
push 0x2000
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00414ad0
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x2000
jae 0x4142d3
xor al, al
jmp 0x41469f
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4142f8
xor al, al
jmp 0x41469f
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
push 0
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00414cd0
push 0
push 0x1000000
lea ecx, [ebp - 0x78]
call fcn.00414cd0
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x94], xmm0
jmp 0x41436c
mov ecx, dword [ebp - 0x94]
add ecx, 0x1000000
mov edx, dword [ebp - 0x90]
adc edx, 0
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x28]
jg 0x41452d
jl 0x41438c
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0x2c]
jae 0x41452d
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push 1
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4143cc
mov byte [ebp - 0x79], 0
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x79]
jmp 0x41469f
push 0
lea eax, [ebp - 0x30]
push eax
push 0x1000000
push 0
lea ecx, [ebp - 0x78]
call fcn.00411860
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41440c
mov byte [ebp - 0x7a], 0
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x7a]
jmp 0x41469f
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x414444
mov byte [ebp - 0x7b], 0
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x7b]
jmp 0x41469f
mov dword [ebp - 0x88], 0
jmp 0x414461
mov eax, dword [ebp - 0x88]
add eax, 0x2000
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x30]
jae 0x414520
push 0x2000
lea ecx, [ebp - 0x78]
call fcn.004078e0
add eax, dword [ebp - 0x88]
push eax
push 0
lea ecx, [ebp - 0x60]
call fcn.00411860
push eax
call fcn.0043c250
add esp, 0xc
mov edx, dword [ebp - 0x8c]
push edx
push 0x2000
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.00414b80
movzx edx, al
test edx, edx
jne 0x4144db
mov byte [ebp - 0x7c], 0
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x7c]
jmp 0x41469f
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004078e0
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41451b
mov byte [ebp - 0x7d], 0
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x7d]
jmp 0x41469f
jmp 0x414450
cmp dword [ebp + 0x10], 1
jne 0x414528
jmp 0x41452d
jmp 0x41434b
mov dword [ebp - 0x9c], 0
xor eax, eax
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xa4], 0
xor eax, eax
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
push 2
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x414688
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 0x14
call fcn.00407520
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x14
call fcn.004078e0
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414688
mov ecx, dword [ebp - 0x84]
add ecx, 0x14
call fcn.00407520
cmp dword [ebp - 0x14], eax
jne 0x414688
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov ecx, 0x485e00
call fcn.00410630
mov ecx, eax
call fcn.00407520
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00414b30
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x14
call fcn.00407520
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x18
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414688
cmp dword [ebp - 0x14], 0x18
jne 0x414688
mov byte [ebp - 0x7e], 1
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x7e]
jmp 0x41469f
mov byte [ebp - 0x7f], 0
lea ecx, [ebp - 0x78]
call fcn.00407900
lea ecx, [ebp - 0x60]
call fcn.00407900
mov al, byte [ebp - 0x7f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a762
mov esp, ebp
pop ebp
ret 0xc