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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6b40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
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 0x47908b
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x478f47
or esi, eax
or ebx, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
jmp 0x478f4f
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 0x479081
mov eax, dword [ebp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00423f8a
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.00478700
mov ebx, eax
mov ecx, ebx
or ecx, edx
mov dword [ebp - 0x24], edx
je 0x479074
mov ecx, ebx
add ecx, esi
mov eax, edx
adc eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 0x14]
jb 0x478fc8
ja 0x478fbc
cmp ecx, dword [edi + 0x10]
jbe 0x478fc8
push eax
push ecx
mov esi, edi
call fcn.00477aa0
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 0x479074
mov edx, dword [ebp - 0x30]
ja 0x478ff5
test edx, edx
jbe 0x479074
jmp 0x478ff5
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 0x479010
jb 0x47900b
cmp ecx, edx
jae 0x479010
mov dword [ebp + 0x14], edi
jmp 0x479017
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 0x479062
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.004779c0
test eax, eax
je 0x479062
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 0x478ff0
ja 0x479074
cmp esi, dword [ebp - 0x30]
jb 0x478ff0
jmp 0x479074
mov dword [ebp - 0x10], 9
test edi, edi
je 0x479074
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 0x4790ae
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 0x4790d4
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