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

Disassembly:
sub esp, 0x28
push ebx
mov eax, dword [esp + 0x34]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x40], esi
jne 0x452744
pop edi
pop esi
pop ebp
mov eax, 0xee
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x452768
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xee
pop ebx
add esp, 0x28
ret
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
push 0
push 0x200
push edi
push ebx
call fcn.004587a0
push 0
push 0x80
push edx
push eax
call fcn.004587a0
mov ebp, edx
push 0
push 0x10000
push ebp
push eax
mov dword [esp + 0x30], eax
call fcn.00458850
sub ebx, eax
mov esi, edi
sbb esi, edx
mov edx, dword [esp + 0x20]
push 0
push 0x80
push ebp
push edx
mov dword [esp + 0x44], esi
call fcn.00458850
add eax, ebx
push 0
adc edx, esi
push 0x200
push edx
push eax
call fcn.00458850
cmp edi, edx
jl 0x4527e4
jg 0x4527da
cmp dword [esp + 0x28], eax
jbe 0x4527e4
add ebx, 1
adc esi, 0
mov dword [esp + 0x34], esi
xor edi, edi
cmp ebp, edi
jl 0x452906
jg 0x4527fa
cmp dword [esp + 0x20], edi
jbe 0x452906
push 0x10000
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp ebp, edi
mov esi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
jl 0x452893
jg 0x45281e
cmp dword [esp + 0x20], edi
jbe 0x452893
mov ecx, 0x4000
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push esi
push ecx
push 0x80
push edx
call fcn.0044bb30
add esp, 0x10
test eax, eax
je 0x4528e9
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
add eax, 0x80
add edi, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
adc eax, 0
mov dword [esp + 0x18], edi
cmp eax, ebp
mov dword [esp + 0x1c], eax
jl 0x45281e
jg 0x452893
mov eax, dword [esp + 0x20]
mov ecx, edi
cmp ecx, eax
jb 0x45281e
mov ecx, 0x4000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
test eax, eax
jl 0x452975
jg 0x4528b4
test ebx, ebx
jbe 0x452975
mov edi, dword [esp + 0x40]
mov edx, ebx
lea ecx, [esp + 0x14]
push 0
shl edx, 9
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push esi
push eax
push ebx
push ecx
call fcn.0044bb30
add esp, 0x10
test eax, eax
jne 0x452979
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xee
pop ebx
add esp, 0x28
ret
mov ebp, ebx
shl ebp, 9
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x3c]
push esi
push 0
push ebx
push edx
call fcn.0044bb30
add esp, 0x10
test eax, eax
jne 0x452975
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x44]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xee
pop ebx
add esp, 0x28
ret
mov edi, dword [esp + 0x40]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret