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

Disassembly:
sub esp, 0x198
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push esi
mov esi, dword [esp + 0x1a4]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x642c89
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x642c89
push ebx
push ebx
push ebx
or esi, 2
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test eax, eax
jne 0x642c90
mov esi, dword [0xabebfc]
test esi, esi
jne 0x642c1b
push 0x22
push str.MemoryMappedFile.CreateFileMapping
lea ecx, [esp + 0x178]
mov dword [esp + 0x18c], 0xf
mov dword [esp + 0x188], ebx
mov byte [esp + 0x178], bl
call fcn.004192a1
push 1
push 0x3e81
push 0x3e80
lea eax, [esp + 0x17c]
push 1
push eax
call fcn.0065f0f0
mov ecx, dword [esp + 0x198]
add esp, 0x14
mov esi, eax
cmp ecx, 0x10
jb 0x642bfc
inc ecx
push ecx
push dword [esp + 0x174]
lea ecx, [esp + 0x178]
call fcn.0041946e
mov dword [esp + 0x184], 0xf
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], bl
mov dword [0xabebfc], esi
cmp dword [0xabebac], 1
jne 0x642c6e
call fcn.006345a0
cmp eax, 3
jg 0x642c6e
lea eax, [esi + 8]
push str.MemoryMappedFile.CreateFileMapping
push eax
call fcn.006409c0
add esp, 8
test al, al
jne 0x642c6e
push 3
push 0x403
push str.file_util_win.cc
lea ecx, [esp + 0x1c]
call fcn.00633660
add eax, 8
push str.Check_failed:_histogram_pointer__histogram_name_____MemoryMappedFile.CreateFileMapping_.
push eax
call fcn.004d4587
add esp, 8
mov ebx, 1
test bl, 1
je 0x642c7c
lea ecx, [esp + 0x10]
call fcn.00633930
call sub.KERNEL32.dll_GetLastError
push eax
mov ecx, esi
call fcn.0065d970
xor al, al
jmp 0x642dbf
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x642db8
mov esi, dword [0xabec00]
test esi, esi
jne 0x642d44
push 0x1e
push str.MemoryMappedFile.MapViewOfFile
lea ecx, [esp + 0x190]
mov dword [esp + 0x1a4], 0xf
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], bl
call fcn.004192a1
push 1
push 0x3e81
push 0x3e80
lea eax, [esp + 0x194]
push 1
push eax
call fcn.0065f0f0
mov ecx, dword [esp + 0x1b0]
add esp, 0x14
mov esi, eax
cmp ecx, 0x10
jb 0x642d25
inc ecx
push ecx
push dword [esp + 0x18c]
lea ecx, [esp + 0x190]
call fcn.0041946e
mov dword [esp + 0x19c], 0xf
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
mov dword [0xabec00], esi
cmp dword [0xabebac], 1
jne 0x642d9a
call fcn.006345a0
cmp eax, 3
jg 0x642d9a
lea eax, [esi + 8]
push str.MemoryMappedFile.MapViewOfFile
push eax
call fcn.006409c0
add esp, 8
test al, al
jne 0x642d9a
push 3
push 0x40b
push str.file_util_win.cc
lea ecx, [esp + 0xcc]
call fcn.00633660
add eax, 8
push str.Check_failed:_histogram_pointer__histogram_name_____MemoryMappedFile.MapViewOfFile_.
push eax
call fcn.004d4587
add esp, 8
mov ebx, 2
test bl, 2
je 0x642dab
lea ecx, [esp + 0xc0]
call fcn.00633930
call sub.KERNEL32.dll_GetLastError
push eax
mov ecx, esi
call fcn.0065d970
cmp dword [edi + 8], 0
setne al
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00682c16
add esp, 0x198
ret 4