Function at 0x14003ea70
Capabilities:
Read file via mapping

Disassembly:
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x48
lea r15, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [r15]
xor r12d, r12d
movzx ebp, r8b
mov r14, rdx
test rcx, rcx
je 0x14003eaa6
jle 0x14003eaa3
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r15], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003eabb
jle 0x14003eab7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r12
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003eace
jle 0x14003eacb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r12
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14003eae3
jle 0x14003eadf
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r12
lea rsi, [rdi + 0xf8]
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x40], r13
mov qword [rdi + 0x20], r12
mov qword [rdi + 0x28], r12
cmp rsi, r14
je 0x14003eb64
cmp qword [r14 + 0x18], 8
mov rax, r14
mov r12, qword [r14 + 0x10]
mov qword [rsp + 0x80], rax
jb 0x14003eb25
mov rax, qword [r14]
mov qword [rsp + 0x80], rax
mov r13, qword [rsi + 0x18]
cmp r12, r13
ja 0x14003ec0c
mov rbp, rsi
cmp r13, 8
jb 0x14003eb3e
mov rbp, qword [rsi]
lea rbx, [r12 + r12]
mov qword [rsi + 0x10], r12
mov r8, rbx
mov rdx, rax
mov rcx, rbp
call fcn.14006e930
xor r12d, r12d
mov word [rbx + rbp], r12w
movzx ebp, byte [rsp + 0x90]
mov byte [rdi + 0x1c], 0
cmp qword [r14 + 0x18], 8
jb 0x14003eb72
mov r14, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov edx, 0x120089
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
cmp rax, rcx
je 0x14003ebb5
test rcx, rcx
jle 0x14003ebaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003edef
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003ebf7
test rcx, rcx
jle 0x14003ebf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14003ed34
mov byte [rdi + 0x18], r9b
jmp 0x14003ed77
movabs rbx, 0x7ffffffffffffffe
cmp r12, rbx
ja 0x14003ee1f
mov rcx, r12
or rcx, 7
cmp rcx, rbx
jbe 0x14003ec3b
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14003ec8d
mov rdx, r13
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp r13, rax
jbe 0x14003ec5c
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14003ec8d
lea rax, [rdx + r13]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14003ee19
add rcx, rcx
cmp rcx, 0x1000
jb 0x14003ecb9
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003ee19
mov rcx, rax
call fcn.14006c558
test rax, rax
je 0x14003ee25
lea rbp, [rax + 0x27]
and rbp, 0xffffffffffffffe0
mov qword [rbp - 8], rax
jmp 0x14003ecca
test rcx, rcx
je 0x14003ecc8
call fcn.14006c558
mov rbp, rax
jmp 0x14003ecca
xor ebp, ebp
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
mov qword [rsi + 0x18], rbx
lea rbx, [r12 + r12]
mov r8, rbx
mov qword [rsi + 0x10], r12
call fcn.14006e930
xor r12d, r12d
mov word [rbx + rbp], r12w
cmp r13, 8
jb 0x14003ed2c
mov rcx, qword [rsi]
lea rdx, [r13*2 + 2]
cmp rdx, 0x1000
jb 0x14003ed27
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003ee25
mov rcx, r8
call fcn.14006c550
mov qword [rsi], rbp
jmp 0x14003eb5c
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r12
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r12d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003ed6f
test rcx, rcx
jle 0x14003ed68
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003edbf
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x80]
cmp rax, r15
je 0x14003edb1
mov rcx, qword [r15]
cmp rbx, rcx
je 0x14003edbf
test rcx, rcx
jle 0x14003edac
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r15], rbx
jmp 0x14003edbf
test rbx, rbx
jle 0x14003edbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [r15], 0
je 0x14003edef
xor edx, edx
mov rcx, rdi
call fcn.14003ef20
test eax, eax
js 0x14003edfe
test bpl, bpl
jne 0x14003edfe
cmp qword [rsi + 0x18], 8
jb 0x14003ede2
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rdi
call fcn.140040000
jmp 0x14003edfe
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov r13, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x88]
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001150
int3
call fcn.1400012b0
int3
call fcn.14007d788
int3