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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
mov esi, 1
push esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
push SysReAllocStringLen
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x47a8db
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47a797
or esi, eax
or ebx, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
jmp 0x47a79f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov esi, eax
push 0
push esi
push ebx
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x47a8d1
mov eax, dword [ebp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00423fbb
mov edx, dword [ebp + 0x14]
add esp, 4
push edx
add eax, 0x10
push ebx
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
push eax
mov ecx, edi
call fcn.00479f50
mov ebx, eax
mov ecx, ebx
or ecx, edx
mov dword [ebp - 0x24], edx
je 0x47a8c4
mov ecx, ebx
add ecx, esi
mov eax, edx
adc eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 0x14]
jb 0x47a818
ja 0x47a80c
cmp ecx, dword [edi + 0x10]
jbe 0x47a818
push eax
push ecx
mov esi, edi
call fcn.004792f0
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x28], ebx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [edi + 0x2c], edx
cmp dword [ebp - 0x2c], ebx
jb 0x47a8c4
mov edx, dword [ebp - 0x30]
ja 0x47a845
test edx, edx
jbe 0x47a8c4
jmp 0x47a845
mov edx, dword [ebp - 0x30]
mov edi, ecx
mov edi, dword [edi + 0x70]
xor eax, eax
mov ecx, edi
add ecx, esi
adc eax, ebx
cmp eax, dword [ebp - 0x2c]
ja 0x47a860
jb 0x47a85b
cmp ecx, edx
jae 0x47a860
mov dword [ebp + 0x14], edi
jmp 0x47a867
mov eax, edx
sub eax, esi
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
push edx
push esi
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x47a8b2
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.00479210
test eax, eax
je 0x47a8b2
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70]
add esi, edx
adc ebx, 0
cmp ebx, dword [ebp - 0x2c]
jb 0x47a840
ja 0x47a8c4
cmp esi, dword [ebp - 0x30]
jb 0x47a840
jmp 0x47a8c4
mov dword [ebp - 0x10], 9
test edi, edi
je 0x47a8c4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a8fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14