Function at 0x45263c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], edi
mov edi, dword [ebp + 0x14]
mov dword [edi + 0xc], 0
mov edi, dword [ebp + 0x14]
mov dword [edi + 8], 0
mov edi, dword [ebp + 0x14]
mov dword [edi + 4], 0
mov edi, dword [ebp + 0xc]
sar edi, 0x14
shl edi, 0x14
cmp edi, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], esi
je 0x4526a5
mov dword [esp + 0x50], 0x1d
jmp 0x452866
lea eax, [esp + 0x48]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov edx, esp
lea esi, [esp + 0x48]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [esp + 0x30], eax
call sub.KERNEL32.DLL_GetFileSizeEx
sub esp, 8
cmp eax, 0
je 0x4526d4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
jmp 0x4526eb
mov eax, 0xffffffff
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [esp + 0x50], 3
jmp 0x452866
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x44]
jbe 0x452701
mov dword [esp + 0x50], 4
jmp 0x452866
cmp dword [ebp + 0x10], 0
jne 0x452711
mov eax, dword [esp + 0x44]
sub eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x44]
sub ecx, dword [ebp + 0xc]
cmp eax, ecx
jae 0x452728
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x452733
mov eax, dword [esp + 0x44]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0
je 0x45284a
xor eax, eax
mov ecx, 2
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov esi, esp
mov dword [esi], edx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 2
mov dword [esi + 4], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
call sub.KERNEL32.DLL_CreateFileMappingW
sub esp, 0x18
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0xc], 0
jne 0x4527bd
mov eax, 0xffffffff
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 4], 0
mov dword [esp + 0x50], 4
jmp 0x452866
mov eax, 4
mov ecx, 0x20
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 0xc]
mov esi, dword [ebp + 0xc]
sar esi, cl
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx + 4]
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov dword [ecx], edx
mov dword [ecx + 4], 4
mov dword [esp + 0x20], eax
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0
jne 0x452848
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 0xffffffff
mov edx, dword [ebp + 0x14]
mov dword [edx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], 0
mov dword [esp + 0x50], 4
mov dword [esp + 0x1c], eax
jmp 0x452866
jmp 0x45285e
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [eax + 8], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret