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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8490
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4cfc64]
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 0x46b6ab
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x46b567
or esi, eax
or ebx, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
jmp 0x46b56f
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 0x46b6a1
mov eax, dword [ebp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00421e21
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.0046ad20
mov ebx, eax
mov ecx, ebx
or ecx, edx
mov dword [ebp - 0x24], edx
je 0x46b694
mov ecx, ebx
add ecx, esi
mov eax, edx
adc eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 0x14]
jb 0x46b5e8
ja 0x46b5dc
cmp ecx, dword [edi + 0x10]
jbe 0x46b5e8
push eax
push ecx
mov esi, edi
call fcn.0046a1d0
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 0x46b694
mov edx, dword [ebp - 0x30]
ja 0x46b615
test edx, edx
jbe 0x46b694
jmp 0x46b615
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 0x46b630
jb 0x46b62b
cmp ecx, edx
jae 0x46b630
mov dword [ebp + 0x14], edi
jmp 0x46b637
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 0x46b682
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.0046a0f0
test eax, eax
je 0x46b682
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 0x46b610
ja 0x46b694
cmp esi, dword [ebp - 0x30]
jb 0x46b610
jmp 0x46b694
mov dword [ebp - 0x10], 9
test edi, edi
je 0x46b694
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 0x46b6ce
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 0x46b6f4
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