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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1e19
push 0
push 0
dec ecx
jne 0x4fa308
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fab3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, ebx
call fcn.004f9634
mov edi, eax
test edi, edi
jne 0x4faa49
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0xf044]
mov eax, esi
call fcn.004ba8fc
mov eax, dword [ebp - 0xf044]
call fcn.004050bc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4fa386
call sub.kernel32.dll_GetLastError_1
mov edi, eax
jmp 0x4fa983
lea eax, [ebp - 0xf030]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0xffffffff
jne 0x4fa3dd
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4fa3dd
call sub.kernel32.dll_GetLastError_1
mov edi, eax
jmp 0x4fa983
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileTime
test eax, eax
jne 0x4fa408
call sub.kernel32.dll_GetLastError_1
mov edi, eax
jmp 0x4fa983
lea ecx, [ebp - 0xf048]
mov edx, 5
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xf048]
call fcn.004050bc
push eax
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
call sub.kernel32.dll_lstrcpyW
mov dword [ebp - 0xf040], 0x20120123
mov dword [ebp - 0xf03c], 0x3007
lea ecx, [ebp - 0xf04c]
mov edx, 5
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xf04c]
call fcn.004050bc
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
add eax, 0x30
mov dword [ebp - 0xf038], eax
xor eax, eax
mov dword [ebp - 0xf034], eax
lea edx, [ebp - 0xf040]
mov ecx, 0x7530
mov eax, dword [ebx + 0x5c]
call fcn.004f7a3c
mov edi, eax
test edi, edi
jne 0x4fa983
push 0
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1c]
je 0x4fa4d1
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4fa4d1
call sub.kernel32.dll_GetLastError_1
mov edi, eax
jmp 0x4fa983
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x4fa4e3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x4fa514
mov eax, dword [ebx + 0x34]
push eax
push 0x4fab58
lea edx, [ebp - 0xf050]
mov eax, esi
call fcn.004ba8fc
mov eax, dword [ebp - 0xf050]
push eax
mov eax, dword [0x569f1c]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x38]
mov edx, 1
call fcn.004f4ed4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0x64
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, 1
adc edx, 0
call fcn.00405a88
mov dword [ebp - 0xf058], eax
mov dword [ebp - 0xf054], edx
fild qword [ebp - 0xf058]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, 1
adc edx, 0
mov dword [ebp - 0xf060], eax
mov dword [ebp - 0xf05c], edx
fild qword [ebp - 0xf060]
fdivp st(1)
fstp qword [ebp - 0x30]
wait
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xf06c]
push eax
fld qword [ebp - 0x30]
fstp xword [ebp - 0xf078]
wait
lea eax, [ebp - 0xf078]
mov dword [ebp - 0xf058], eax
mov byte [ebp - 0xf054], 3
lea edx, [ebp - 0xf058]
xor ecx, ecx
mov eax, 0x4fab74
call fcn.0040a708
mov edx, dword [ebp - 0xf06c]
lea eax, [ebp - 0xf068]
call fcn.00405040
mov ecx, dword [ebp - 0xf068]
lea eax, [ebp - 0xf064]
mov edx, 0x4fab80
call fcn.00405138
mov eax, dword [ebp - 0xf064]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push 0x4fab84
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0xf084]
call fcn.004f3134
mov edx, dword [ebp - 0xf084]
lea eax, [ebp - 0xf080]
call fcn.00405040
mov ecx, dword [ebp - 0xf080]
lea eax, [ebp - 0xf07c]
mov edx, 0x4fab98
call fcn.00405138
mov eax, dword [ebp - 0xf07c]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0xf090]
call fcn.004f3134
mov edx, dword [ebp - 0xf090]
lea eax, [ebp - 0xf08c]
call fcn.00405040
mov ecx, dword [ebp - 0xf08c]
lea eax, [ebp - 0xf088]
mov edx, 0x4faba0
call fcn.00405138
mov eax, dword [ebp - 0xf088]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push 0
lea eax, [ebp - 0xc]
push eax
push 0x4000
lea eax, [ebp - 0xf030]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4fa730
call sub.kernel32.dll_GetLastError_1
mov edi, eax
jmp 0x4fa94c
cmp dword [ebp - 0xc], 0
je 0x4fa94c
mov dword [ebp - 0xf040], 0x20120123
mov dword [ebp - 0xf03c], 0x10003008
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xf038], eax
xor eax, eax
mov dword [ebp - 0xf034], eax
lea edx, [ebp - 0xf040]
mov ecx, 0x7530
mov eax, dword [ebx + 0x5c]
call fcn.004f7850
mov edi, eax
test edi, edi
jne 0x4fa94c
mov eax, dword [ebp - 0xc]
xor edx, edx
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x10]
je 0x4fa705
push 0
push 0x64
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, 1
adc edx, 0
call fcn.00405a88
mov dword [ebp - 0xf058], eax
mov dword [ebp - 0xf054], edx
fild qword [ebp - 0xf058]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, 1
adc edx, 0
mov dword [ebp - 0xf060], eax
mov dword [ebp - 0xf05c], edx
fild qword [ebp - 0xf060]
fdivp st(1)
fstp qword [ebp - 0x30]
wait
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xf09c]
push eax
fld qword [ebp - 0x30]
fstp xword [ebp - 0xf078]
wait
lea eax, [ebp - 0xf078]
mov dword [ebp - 0xf058], eax
mov byte [ebp - 0xf054], 3
lea edx, [ebp - 0xf058]
xor ecx, ecx
mov eax, 0x4fab74
call fcn.0040a708
mov edx, dword [ebp - 0xf09c]
lea eax, [ebp - 0xf098]
call fcn.00405040
mov ecx, dword [ebp - 0xf098]
lea eax, [ebp - 0xf094]
mov edx, 0x4fab80
call fcn.00405138
mov eax, dword [ebp - 0xf094]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push 0x4faba8
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 4]
call fcn.004f56c8
push edx
push eax
lea eax, [ebp - 0xf0a8]
call fcn.004f3134
mov edx, dword [ebp - 0xf0a8]
lea eax, [ebp - 0xf0a4]
call fcn.00405040
push dword [ebp - 0xf0a4]
push 0x4fabb0
lea eax, [ebp - 0xf0a0]
mov edx, 3
call fcn.0040519c
mov eax, dword [ebp - 0xf0a0]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0xf0b4]
call fcn.004f3134
mov edx, dword [ebp - 0xf0b4]
lea eax, [ebp - 0xf0b0]
call fcn.00405040
mov ecx, dword [ebp - 0xf0b0]
lea eax, [ebp - 0xf0ac]
mov edx, 0x4fab98
call fcn.00405138
mov eax, dword [ebp - 0xf0ac]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x4fa705
mov dword [ebp - 0xf040], 0x20120123
mov dword [ebp - 0xf03c], 0x10003008
mov dword [ebp - 0xf034], edi
xor eax, eax
mov dword [ebp - 0xf038], eax
lea edx, [ebp - 0xf040]
mov ecx, 0x7530
mov eax, dword [ebx + 0x5c]
call fcn.004f7850
test eax, eax
cmp dword [ebp - 8], 0xffffffff
je 0x4fa992
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test edi, edi
jne 0x4faa49
lea edx, [ebp - 0xf0c0]
mov eax, 0x64
call fcn.00409880
mov edx, dword [ebp - 0xf0c0]
lea eax, [ebp - 0xf0bc]
call fcn.00405040
mov ecx, dword [ebp - 0xf0bc]
lea eax, [ebp - 0xf0b8]
mov edx, 0x4fab80
call fcn.00405138
mov eax, dword [ebp - 0xf0b8]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0xf0cc]
call fcn.004f3134
mov edx, dword [ebp - 0xf0cc]
lea eax, [ebp - 0xf0c8]
call fcn.00405040
mov ecx, dword [ebp - 0xf0c8]
lea eax, [ebp - 0xf0c4]
mov edx, 0x4fab98
call fcn.00405138
mov eax, dword [ebp - 0xf0c4]
call fcn.004050bc
push eax
push esi
push 0x469
mov eax, dword [ebx + 0x40]
call fcn.00453e2c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fab49
lea eax, [ebp - 0xf0cc]
call fcn.00404730
lea eax, [ebp - 0xf0c8]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf0c0]
call fcn.00404730
lea eax, [ebp - 0xf0bc]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf0b4]
call fcn.00404730
lea eax, [ebp - 0xf0b0]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf0a8]
call fcn.00404730
lea eax, [ebp - 0xf0a4]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf09c]
call fcn.00404730
lea eax, [ebp - 0xf098]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf090]
call fcn.00404730
lea eax, [ebp - 0xf08c]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf084]
call fcn.00404730
lea eax, [ebp - 0xf080]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf06c]
call fcn.00404730
lea eax, [ebp - 0xf068]
mov edx, 2
call fcn.00404e74
lea eax, [ebp - 0xf050]
mov edx, 4
call fcn.00404e74
ret