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

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x1c]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocString
mov dword [esp + 0x30], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44593b
push ebp
push edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00455403
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x445691
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp ebp, edi
je 0x44593b
cmp esi, edi
jbe 0x44593b
cmp esi, dword [esp + 0x14]
jne 0x44593b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push esi
push ebx
mov dword [esp + 0x1c], edi
call fcn.00445950
cmp eax, edi
je 0x445932
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edi
cmp ecx, edi
jbe 0x445932
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub edx, ecx
mov eax, 0x8cf008d
imul edx
sar edx, 7
mov eax, edx
mov ebp, ecx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x445831
mov esi, dword [ebx + 4]
test esi, esi
je 0x44572f
mov edx, ecx
mov eax, 0x8cf008d
sub edx, esi
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x445734
mov edi, 1
test esi, esi
jne 0x44573c
xor edx, edx
jmp 0x44574f
sub ecx, esi
mov eax, 0x8cf008d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [edx + edi]
test ecx, ecx
mov dword [esp + 0x2c], ecx
jge 0x44575c
xor ecx, ecx
mov eax, ecx
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call fcn.00455403
mov edi, dword [ebx + 4]
add esp, 4
cmp edi, ebp
mov dword [esp + 0x1c], eax
mov esi, eax
je 0x44579c
push edi
push esi
call fcn.00446940
add edi, 0xe88
add esp, 8
add esi, 0xe88
cmp edi, ebp
jne 0x445782
mov eax, dword [esp + 0x28]
mov ecx, ebx
push eax
push 1
push esi
call fcn.00446900
mov ecx, dword [ebx + 8]
add esi, 0xe88
push esi
push ecx
push ebp
mov ecx, ebx
call fcn.004468c0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push edx
push eax
mov ecx, ebx
call fcn.004115c0
mov ecx, dword [ebx + 4]
push ecx
call fcn.004535f0
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4457ff
xor edx, edx
jmp 0x445815
mov edx, dword [ebx + 8]
sub edx, eax
mov eax, 0x8cf008d
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
inc edx
mov dword [ebx + 4], ecx
mov eax, edx
shl eax, 5
sub eax, edx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8]
mov dword [ebx + 8], eax
jmp 0x44590b
mov edx, ecx
mov eax, 0x8cf008d
sub edx, ebp
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4458a8
lea edx, [ebp + 0xe88]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.004468c0
mov esi, dword [ebx + 8]
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
sub ecx, ebp
mov eax, 0x8cf008d
imul ecx
sar edx, 7
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push esi
call fcn.00446900
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x445904
mov esi, dword [esp + 0x28]
mov edi, ebp
add ebp, 0xe88
mov ecx, 0x3a2
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x44588f
jmp 0x445904
lea eax, [ecx - 0xe88]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.004468c0
mov edx, dword [ebx + 8]
lea eax, [edx - 0xe88]
cmp ebp, eax
je 0x4458e3
sub eax, 0xe88
sub edx, 0xe88
mov ecx, 0x3a2
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4458c9
lea eax, [ebp + 0xe88]
cmp ebp, eax
je 0x445904
mov esi, dword [esp + 0x28]
mov edi, ebp
add ebp, 0xe88
mov ecx, 0x3a2
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4458ed
add dword [ebx + 8], 0xe88
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
inc eax
add edx, 0xe88
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
jb 0x4456e8
mov ebx, dword [esp + 0x20]
push ebx
call fcn.004535f0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8