Function at 0x413f00
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, 0x44fba8
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 0x44fb84
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 0x414085
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 0x41405f
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 0x414030
cmp dword [esp + 0xc], edi
jne 0x41401c
push esi
mov byte [esi + edi], 0
call fcn.00414210
add esp, 4
push esi
call fcn.00437920
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41411b
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push 0x44fb48
push edx
jmp 0x414042
lea eax, [esp + 0x268]
lea ecx, [esp + 0x10]
push eax
push 0x44fb48
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 0x41411b
lea edx, [esp + 0x268]
lea eax, [esp + 0x10]
push edx
push 0x44fb04
push eax
call fcn.00437eec
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41411b
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x79
ja case.0x41409b.7
xor ecx, ecx
mov cl, byte [eax + 0x414190]
jmp dword [ecx*4 + 0x414178]
lea edx, [esp + 0x268]
lea eax, [esp + 0x10]
push edx
push 0x44facc
push eax
jmp 0x414113
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push 0x44fa84
push edx
jmp 0x414113
lea eax, [esp + 0x268]
push eax
push 0x44fa4c
jmp 0x41410e
lea edx, [esp + 0x268]
lea eax, [esp + 0x10]
push edx
push 0x44fa14
push eax
jmp 0x414113
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push 0x44f9dc
push edx
jmp 0x414113
lea eax, [esp + 0x268]
push eax
push 0x44f9a0
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 0x414135
lea edx, [esp + 4]
push edx
call fcn.00401c20
add esp, 4
jmp 0x41414e
call fcn.00413690
dec eax
push eax
lea eax, [esp + 8]
push 0x44f968
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