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

Disassembly:
push 0xffffffffffffffff
push 0x4b74d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
xor ebp, ebp
mov dword [ebx], ebp
mov dword [edi], ebp
mov dword [eax], ebp
mov dword [ecx], ebp
cmp esi, ebp
je 0x45050b
lea ecx, [esp + 0x28]
call fcn.00475e73
push ebp
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ebp
call fcn.00475f0b
test eax, eax
je 0x4504fa
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push esi
mov dword [esp + 0x74], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4504fa
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, ebp
je 0x4504f3
cmp eax, 0xffffffff
je 0x4504f3
push eax
call fcn.00464376
add esp, 4
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [ebx], eax
mov ecx, dword [edi]
push ecx
push eax
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
mov ebx, dword [ebx]
mov dword [esp + 0x50], 0x5555aaaa
mov dword [esp + 0x18], 0xaaaa5555
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov ebp, edi
push 0
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x5c]
push eax
lea esi, [ebx + ebp]
push esi
push ebx
call fcn.0044deb0
add esp, 0x18
cmp eax, esi
jae 0x450418
mov ecx, dword [esp + 0x20]
sub ecx, eax
push 0
add ecx, edi
lea edi, [ecx + eax]
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push eax
mov esi, eax
call fcn.0044deb0
add esp, 0x18
cmp eax, edi
jae 0x45040f
mov ecx, eax
sub ecx, esi
cmp ecx, 8
jb 0x4503f2
mov edx, 2
cmp dword [esi + 4], edx
je 0x450428
add ecx, 0xfffffffc
cmp ecx, 0x2c
je 0x450496
cmp ecx, 0x84
ja 0x45040f
cmp ecx, 0x34
jae 0x4504c1
sub ebx, esi
lea ebp, [ebx + ebp - 4]
lea ebx, [esi + 4]
lea ecx, [ebx + ebp]
cmp eax, ecx
jae 0x450466
mov edi, dword [esp + 0x24]
jmp 0x450397
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x32c], edx
mov dword [ecx + 0x334], 0
mov ecx, dword [esp + 0x54]
mov edx, esi
sub edx, dword [ecx]
mov ecx, dword [esp + 0x5c]
add edx, 4
sub eax, esi
add eax, 0xfffffffc
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
cmp eax, 0xc
mov dword [edx], eax
sbb eax, eax
inc eax
mov dword [esp + 0x58], eax
test eax, eax
jne 0x45047f
mov esi, dword [esp + 0x54]
mov eax, dword [esi]
test eax, eax
je 0x45047f
push eax
call fcn.0046436b
add esp, 4
mov dword [esi], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0xffffffff
call fcn.00475e9c
mov eax, dword [esp + 0x58]
jmp 0x45050d
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 0x32c], ecx
mov dword [eax + 0x334], ecx
mov eax, dword [esp + 0x54]
sub esi, dword [eax]
mov ecx, dword [esp + 0x5c]
add esi, 4
mov dword [esp + 0x58], 1
mov dword [ecx], esi
jmp 0x45047f
mov ecx, dword [esp + 0x14]
sub eax, esi
mov edx, 1
sub eax, 0x38
mov dword [ecx + 0x32c], edx
shr eax, 2
mov dword [ecx + 0x334], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x54]
sub esi, dword [edx]
add esi, 4
mov dword [eax], esi
jmp 0x45047f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0xffffffff
call fcn.00475e9c
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14