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

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x20]
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
je 0x44e3f1
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push esi
call ebp
shr eax, 9
push ebx
push esi
mov dword [esp + 0x24], eax
call ebp
mov edi, eax
push ebx
shr edi, 0x10
push esi
mov dword [esp + 0x28], edi
call ebp
mov ecx, edi
mov ebp, eax
shl ecx, 0x10
sub ebp, ecx
push ebx
push esi
shr ebp, 9
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, edi
shl edx, 7
add edx, ebp
shl edx, 9
cmp eax, edx
jbe 0x44e2cc
inc ebp
cmp edi, ebx
jbe 0x44e404
push 0x10000
call sub.MFC42.DLL_operatornew
add esp, 4
cmp edi, ebx
mov esi, eax
mov dword [esp + 0x14], ebx
jbe 0x44e376
mov ecx, 0x4000
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push 0x80
mov ecx, ebx
push 0x80
push 0
and ecx, 0xff
push 0
xor edx, edx
push ecx
xor eax, eax
mov al, byte [esp + 0x2a]
mov dl, bh
mov ecx, ebx
push edx
mov edx, dword [esp + 0x44]
push eax
shr ecx, 0x18
push ecx
push 0
push 0xf7
push edx
call fcn.0044be70
add esp, 0x30
test eax, eax
je 0x44e3fe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add ebx, 0x80
inc eax
cmp eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jb 0x44e2ef
mov ecx, 0x4000
xor eax, eax
mov edi, esi
test ebp, ebp
rep stosd dword es:[edi], eax
jbe 0x44e488
mov edi, dword [esp + 0x2c]
push eax
mov ecx, ebp
lea eax, [esp + 0x1c]
shl ecx, 9
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push ebp
mov edx, ebx
push ebp
xor eax, eax
push 0
and edx, 0xff
xor ecx, ecx
mov cl, byte [esp + 0x22]
push 0
mov al, bh
push edx
mov edx, dword [esp + 0x40]
push eax
shr ebx, 0x18
push ecx
push ebx
push 0
push 0xf7
push edx
call fcn.0044be70
add esp, 0x30
test eax, eax
jne 0x44e488
test esi, esi
je 0x44e3ea
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, 0xe9
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x44e3ea
jmp 0x44e3e1
mov ebx, ebp
shl ebx, 9
push ebx
call sub.MFC42.DLL_operatornew
mov ecx, ebx
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 + 0x30]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push ebp
mov edx, dword [esp + 0x30]
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xf7
push edx
call fcn.0044be70
add esp, 0x30
test eax, eax
jne 0x44e488
test esi, esi
je 0x44e470
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xe9
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x44e495
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
cmp dword [esp + 0x30], 0x80
jb 0x44e537
push 0x10000
call sub.MFC42.DLL_operatornew
mov esi, eax
xor eax, eax
push esi
push 0x80
mov ecx, 0x4000
mov edi, esi
push 0x80
push eax
rep stosd dword es:[edi], eax
push eax
mov eax, dword [esp + 0x34]
mov edx, eax
xor ecx, ecx
and edx, 0xff
mov cl, ah
push edx
xor edx, edx
mov dl, byte [esp + 0x3a]
push ecx
shr eax, 0x18
push edx
push eax
mov eax, dword [esp + 0x50]
push 0
push 0xf7
push eax
call fcn.0044be70
add esp, 0x34
test eax, eax
jne 0x44e52a
test esi, esi
je 0x44e516
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
call ebx
pop edi
pop esi
pop ebp
mov eax, 0xe9
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x44e537
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret