Function at 0x1400940d0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14d, r9d
mov rbx, r8
mov r13, rdx
mov r12, rcx
mov rbp, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0xc0]
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [rcx + r14]
lea rdi, [r12 + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
xor r15d, r15d
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov rdx, rax
call fcn.1400027c0
mov rsi, qword [r12 + 0x28]
lea rax, [rsi + 1]
mov ecx, 1
cmp rax, rcx
ja 0x140094187
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebx, 0x19
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400edc60
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], r14
mov rbp, qword [r12]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400942dc
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rbp, rbp
je 0x1400942f6
mov esi, dword [rsp + 0x40]
mov eax, dword [rsp + 0xc0]
mov r14d, eax
test rbx, rbx
je 0x14009423b
test eax, eax
je 0x14009423b
lea rdi, [rsi + rbp]
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.1400f0ce0
mov rax, 0xfffffffffffffe00
mov rcx, qword [rdi + rax + 0x200]
test rcx, rcx
je 0x140094235
sub rcx, rbx
mov qword [rdi + rax + 0x200], rcx
add rax, 8
jne 0x14009421d
mov rax, qword [rsp + 0x48]
mov qword [0x140195858], rax
lea r8, [0x140195858]
mov r9d, 8
mov rcx, r12
call fcn.140094050
mov ebx, eax
mov qword [0x140195858], 0
test ebx, ebx
jne 0x1400942c7
mov qword [0x140195980], rsi
lea r8, [0x140195980]
mov r9d, 8
mov rcx, r12
call fcn.140094050
mov ebx, eax
mov qword [0x140195980], 0
test ebx, ebx
jne 0x1400942c7
mov qword [0x140195988], r14
lea r8, [0x140195988]
mov r9d, 8
mov rcx, r12
call fcn.140094050
mov ebx, eax
mov qword [0x140195988], 0
test ebx, ebx
je 0x140094310
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x140094167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1a
jmp 0x140094167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x140094167
lea rsi, [r12 + 0x38]
mov ecx, 0x38
call fcn.1400edc90
mov rdi, rax
mov r9, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x10]
mov rdx, qword [r12]
mov qword [rsp + 0x20], r13
mov rcx, rdi
call fcn.1400a1060
mov rcx, rsi
mov rdx, rdi
call fcn.140093c20
mov rcx, qword [r12 + 0x38]
mov r9d, 0x400
mov rdx, rbp
mov r8, qword [rsp + 0x40]
call fcn.1400a1180
mov ebx, 4
test al, al
je 0x140094167
mov rcx, r12
call fcn.1400aef80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x140094167