Function at 0x180049c40
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
je 0x180049f6d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x180049f62
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180049f54
mov rcx, qword [rsp + 0x58]
call fcn.1800497c0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180049f49
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x180049d60
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x64], eax
jmp 0x180049d76
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x78]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x50]
call fcn.18004a690
mov eax, eax
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180049f49
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.18004a690
mov eax, eax
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x40], 0
jmp 0x180049ddd
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x40], eax
jae 0x180049f02
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x80], eax
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call fcn.18004a690
mov eax, eax
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x44], 0
jmp 0x180049e3f
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0x44], eax
jae 0x180049efd
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x98]
call fcn.180057600
test eax, eax
jne 0x180049ef8
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.18004a690
mov eax, eax
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x40]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x50]
call fcn.18004a690
mov eax, eax
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x60]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xc8]
mov qword [rdx + rcx*8], rax
mov dword [rsp + 0x48], 1
jmp 0x180049efd
jmp 0x180049e35
jmp 0x180049dd3
cmp dword [rsp + 0x48], 0
je 0x180049f49
mov dword [rsp + 0x40], 0
jmp 0x180049f1d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0x40], eax
jae 0x180049f49
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
cmp qword [rcx + rax*8], 0
jne 0x180049f47
mov dword [rsp + 0x48], 0
jmp 0x180049f49
jmp 0x180049f13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0xa8
ret