Function at 0x406750
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x45c
push ebp
push esi
push edi
mov ecx, 0x95
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x26c]
push eax
call fcn.00437130
mov edi, 0x44d45c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x270]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x270]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push 0x44d438
push ecx
call fcn.00437eec
push 0
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00431710
lea eax, [esp + 0x30]
push eax
call fcn.00401f40
add esp, 0x24
lea ecx, [esp + 0x268]
mov byte [esp + 0x10], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4068d5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea edx, [edi + 1]
push edx
call fcn.004378b0
mov esi, eax
add esp, 4
test esi, esi
je 0x4068af
lea eax, [esp + 0xc]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406880
cmp dword [esp + 0xc], edi
jne 0x40686c
push esi
mov byte [esi + edi], 0
call fcn.00406a60
add esp, 4
push esi
call fcn.00437920
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40696b
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push 0x44d3fc
push edx
jmp 0x406892
lea eax, [esp + 0x268]
lea ecx, [esp + 0x10]
push eax
push 0x44d3fc
push ecx
call fcn.00437eec
add esp, 0xc
push esi
call fcn.00437920
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40696b
lea edx, [esp + 0x268]
lea eax, [esp + 0x10]
push edx
push 0x44d3b8
push eax
call fcn.00437eec
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40696b
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x79
ja case.0x4068eb.7
xor ecx, ecx
mov cl, byte [eax + 0x4069e0]
jmp dword [ecx*4 + 0x4069c8]
lea edx, [esp + 0x268]
lea eax, [esp + 0x10]
push edx
push 0x44d380
push eax
jmp 0x406963
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push 0x44d338
push edx
jmp 0x406963
lea eax, [esp + 0x268]
push eax
push 0x44d304
jmp 0x40695e
lea edx, [esp + 0x268]
lea eax, [esp + 0x10]
push edx
push 0x44d2d0
push eax
jmp 0x406963
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push 0x44d29c
push edx
jmp 0x406963
lea eax, [esp + 0x268]
push eax
push 0x44d260
lea ecx, [esp + 0x18]
push ecx
call fcn.00437eec
add esp, 0xc
mov al, byte [esp + 0x10]
pop edi
pop esi
pop ebp
test al, al
je 0x406985
lea edx, [esp + 4]
push edx
call fcn.00401c20
add esp, 4
jmp 0x40699e
call fcn.00406280
dec eax
push eax
lea eax, [esp + 8]
push 0x44d22c
push eax
call fcn.00437eec
add esp, 0xc
push 0
lea ecx, [esp + 8]
push 0
push ecx
call fcn.00431710
lea edx, [esp + 0x10]
push edx
call fcn.00401f90
call fcn.00401b90
neg al
sbb eax, eax
neg eax
add esp, 0x46c
ret