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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4339f0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x64], esi
cmp dword [esi + 0x50], 0
je 0x416f49
cmp dword [esi + 0x68], 0
je 0x416f49
cmp edi, 0xffffffff
je 0x416f49
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x416f49
mov eax, dword [0x45cb1c]
shl eax, 0x14
push ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x74], eax
call fcn.00407690
push 0
push 0x400
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00432410
push 0
push 0x400
push edx
push eax
call fcn.00432410
push 0
push dword [0x45cb1c]
push edx
push eax
call fcn.00432410
push 0
push 2
push edx
push eax
call fcn.00432410
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, edx
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x78], ecx
movlpd qword [ebp - 0x70], xmm0
test ecx, ecx
jl 0x416dff
jg 0x416cf8
test eax, eax
je 0x416dff
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
push eax
push ebx
push 0
push dword [ebp - 0x74]
call fcn.00432580
mov esi, eax
mov eax, edx
push 0
shld eax, esi, 1
push 0
push eax
add esi, esi
mov dword [ebp - 0x6c], eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x416f15
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x416f15
push 0
push 0
push dword [ebp - 0x6c]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x416f15
mov eax, dword [ebp - 0x64]
lea edx, [eax + 0x58]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x416d7f
mov edx, dword [edx]
mov ecx, eax
call fcn.00414970
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
setae cl
test cl, cl
push esi
mov esi, dword [ebp - 0x64]
mov ecx, esi
cmovne edx, dword [ebp - 0x2c]
call fcn.00414990
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x416f15
mov eax, dword [ebp - 0x68]
add ebx, 1
adc eax, 0
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x78]
jl 0x416d01
jg 0x416df9
cmp ebx, dword [ebp - 0x3c]
jb 0x416d01
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push 2
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x416fa5
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.00416380
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x416f75
cmp dword [ebp - 0x4c], 0x10
lea edx, [ebp - 0x14]
push 0
push edx
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x416f75
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x50]
jne 0x416f75
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov al, byte [0x45cb1c]
push 0
mov byte [ebp - 0x43], al
lea eax, [ebp - 0x14]
push eax
push 0x10
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
push eax
push edi
mov byte [ebp - 0x44], 3
mov dword [ebp - 0x48], 0xd3b1d3ff
call ebx
test eax, eax
je 0x416f75
cmp dword [ebp - 0x14], 0x10
jne 0x416f75
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x416ed3
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416ec9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fd4
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0x10
jb 0x416f71
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416f67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fd4
jmp 0x416f67
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x416f49
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416f3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fcf
push ecx
push edx
call fcn.004205b6
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
push ecx
push edx
call fcn.004205b6
add esp, 8
mov al, 1
jmp 0x416f4b
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x416fa5
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416f9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fd9
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x416f49
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416f3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416f3f
call fcn.0042552f
call fcn.0042552f
call fcn.0042552f
int3