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

Disassembly:
push 0x73c
mov eax, 0x4a1eff
call fcn.0047c4d6
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0042c37d
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.00430910
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0042abff
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.0042dc11
push eax
lea ecx, [ebp - 0x94]
call fcn.0042abff
mov byte [ebp - 4], 2
call fcn.0042dc17
mov ecx, eax
call fcn.0042b530
test al, al
je 0x445fe1
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0042aee6
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0042ae8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x445f8b
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0042ad0b
jmp 0x446178
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x445f77
push ebx
mov dword [ebp - 0x744], edi
call fcn.0047b8bf
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x744]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], ebx
je 0x446161
push esi
call fcn.0047b8c8
pop ecx
mov esi, edi
jmp 0x445f77
call fcn.0042dc17
push eax
lea ecx, [ebp - 0x94]
call fcn.0042aee6
call fcn.0042de80
test al, al
je 0x446008
call fcn.0042dc1d
mov dword [ebp - 0x73c], eax
jmp 0x446077
call fcn.0042dc23
push eax
lea ecx, [ebp - 0x220]
call fcn.0042abff
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0042ae8b
push eax
call fcn.00432d68
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.0042ae8b
push eax
call fcn.00439b21
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x446062
push eax
call fcn.0047b8c8
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0042ad0b
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x445f77
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0042abff
push 0x4ac230
push 0x4ac234
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0042b6ee
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0042ae8b
push eax
push dword [ebp - 0x73c]
call fcn.004394ea
add esp, 0x14
test eax, eax
je 0x4460ee
lea ecx, [ebp - 0x118]
call fcn.0042ad0b
jmp 0x445f77
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x4460de
push ebx
call fcn.0047b8bf
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00439f73
add esp, 0x14
test eax, eax
je 0x446141
cmp eax, 0x600
je 0x446141
push esi
call fcn.0047b8c8
pop ecx
mov esi, edi
call fcn.0042de80
test al, al
jne 0x4460de
push dword [ebp - 0x73c]
call fcn.004392cf
pop ecx
jmp 0x4460de
call fcn.0042de80
test al, al
jne 0x446156
push dword [ebp - 0x73c]
call fcn.004392cf
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0042ad0b
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0042ad0b
test esi, esi
jne 0x4461f9
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.0042ae8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x4461f5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4461f5
push ebx
mov dword [ebp - 0x740], edi
call fcn.0047b8bf
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x740]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], ebx
je 0x4461f5
push esi
call fcn.0047b8c8
pop ecx
jmp 0x44620b
test esi, esi
je 0x44620b
push ebx
push esi
call fcn.00445e5c
push esi
mov edi, eax
call fcn.0047b8c8
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0042ad0b
lea ecx, [ebp - 0x508]
call fcn.0042c7cb
mov eax, edi
call fcn.0047c494
ret