Function at 0x14006ac00
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
sub rsp, 0xd8
mov qword [rax + 0x10], rbx
xor edi, edi
mov qword [rax - 0x18], rbp
mov rbx, rdx
mov ebp, dword [rcx + 0x3c]
xor r9d, r9d
add rbp, rcx
mov qword [rax - 0x20], rsi
mov qword [rax - 0x30], r13
mov rsi, rcx
mov qword [rax - 0x38], r15
mov edx, 0x80000000
mov rax, r8
mov qword [rsp + 0x30], rdi
movzx r15d, word [rbp + 0x14]
lea rcx, [rbp + 0x18]
movzx r13d, word [rbp + 6]
lea r8d, [rdi + 1]
add r15, rcx
mov qword [rsp + 0x48], rcx
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], rbp
mov word [rsp + 0x108], r13w
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
mov rcx, rax
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14006b0e3
xor r9d, r9d
mov qword [rsp + 0xc0], r12
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea edx, [rdi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r12, rax
test rax, rax
je 0x14006b0d0
mov rcx, rbx
call qword [0x1402d9fd8]
mov rdi, rsi
add rsi, rbx
mov r14, rax
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0xf0], rsi
jae 0x14006adb9
mov rbp, qword [rsp + 0xf0]
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov r9, rdi
sub r9, rbp
cmp dword [rsp + 0x98], 0x2000
je 0x14006ad4c
mov rdx, rdi
jmp 0x14006ad94
xor r10d, r10d
movzx edx, r10w
cmp r10w, r13w
jae 0x14006ad8d
nop dword [rax]
movzx eax, dx
lea rcx, [rax + rax*4]
lea r8, [r15 + rcx*8]
mov ecx, dword [r15 + rcx*8 + 0xc]
cmp r9, rcx
jb 0x14006ad84
mov eax, dword [r8 + 0x10]
add eax, ecx
cmp r9, rax
jb 0x14006af54
inc dx
cmp dx, r13w
jb 0x14006ad60
mov rax, r10
lea rdx, [rax + r12]
mov rbx, qword [rsp + 0x90]
lea rcx, [r9 + r14]
mov r8, rbx
call fcn.1402b61df
add rdi, rbx
cmp rdi, rsi
jb 0x14006ad20
mov rbp, qword [rsp + 0x60]
test byte [rbp + 0x16], 1
jne 0x14006af63
lea rbx, [rbp + 0x18]
cmp dword [rbx + 0x9c], 0
je 0x14006af6b
mov r8d, dword [rbp + 0xb0]
mov rax, r12
mov rdi, qword [rsp + 0xf0]
movzx edx, r13w
sub rax, rdi
mov rcx, r15
mov rbp, r15
mov rbx, qword [rax + rbx + 0x18]
call fcn.14006b650
cmp dword [r12 + rax], 0
lea r9, [r12 + rax]
je 0x14006ae7c
mov r10d, 0xf000
mov r11d, 0x3000
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r9 + 4]
lea rdx, [r9 + 8]
lea rax, [rcx - 8]
shr rax, 1
test eax, eax
je 0x14006ae71
mov r8d, eax
nop word [rax + rax]
movzx ecx, word [rdx]
movzx eax, cx
and ax, r10w
cmp ax, r11w
jne 0x14006ae63
and ecx, 0xfff
mov rax, rbx
add ecx, dword [r9]
sub rax, rdi
add qword [rcx + r14], rax
add rdx, 2
sub r8, 1
jne 0x14006ae40
mov ecx, dword [r9 + 4]
mov eax, ecx
add r9, rax
cmp dword [r9], 0
jne 0x14006ae20
mov rbx, qword [rsp + 0x48]
xor r12b, r12b
xor r15b, r15b
xor eax, eax
cmp ax, r13w
jae 0x14006b0ad
mov rcx, r13
mov r14, rbp
mov qword [rsp + 0x60], rcx
nop
mov eax, dword [r14 + 0x24]
and eax, 0xa2000020
cmp eax, 0x20000020
jne 0x14006b090
mov r8d, dword [rbx + 0x78]
test r8, r8
je 0x14006af73
mov ecx, dword [r14 + 0xc]
cmp r8, rcx
jb 0x14006af73
mov eax, dword [r14 + 0x10]
add eax, ecx
cmp r8, rax
jae 0x14006af73
test r12b, r12b
jne 0x14006af73
movzx edx, r13w
mov rcx, rbp
call fcn.14006b650
mov r12, qword [rsp + 0x58]
cmp dword [r12 + rax], 0
mov rsi, qword [rsp + 0x40]
lea rdi, [r12 + rax]
je 0x14006af4f
nop word [rax + rax]
mov r8d, dword [rdi + 0x10]
movzx edx, r13w
mov rcx, rbp
lea rbx, [r8 + rsi]
call fcn.14006b650
cmp dword [rbx], 0
lea rcx, [r12 + rax]
je 0x14006af41
nop dword [rax]
mov eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [rbx], eax
lea rbx, [rbx + 4]
cmp dword [rbx], 0
jne 0x14006af30
add rdi, 0x14
cmp dword [rdi], 0
jne 0x14006af10
mov rbx, qword [rsp + 0x48]
mov r12b, 1
jmp 0x14006af78
mov eax, dword [r8 + 0x14]
sub rax, rcx
add rax, r9
jmp 0x14006ad90
mov rbp, r15
jmp 0x14006ae7c
mov rbp, r15
jmp 0x14006ae81
mov rsi, qword [rsp + 0x40]
mov r8d, dword [rbx + 0xd8]
test r8, r8
je 0x14006afff
mov ecx, dword [r14 + 0xc]
cmp r8, rcx
jb 0x14006afff
mov eax, dword [r14 + 0x10]
add eax, ecx
cmp r8, rax
jae 0x14006afff
test r15b, r15b
jne 0x14006afff
movzx edx, r13w
mov rcx, rbp
call fcn.14006b650
mov r15, qword [rsp + 0x58]
lea rdi, [r15 + 0xc]
add rdi, rax
mov eax, dword [rdi]
test eax, eax
je 0x14006affc
nop dword [rax + rax]
mov r8d, eax
movzx edx, r13w
mov rcx, rbp
lea rbx, [r8 + rsi]
call fcn.14006b650
cmp dword [rbx], 0
lea rcx, [r15 + rax]
je 0x14006aff1
nop dword [rax]
mov eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [rbx], eax
lea rbx, [rbx + 4]
cmp dword [rbx], 0
jne 0x14006afe0
mov eax, dword [rdi + 0x20]
add rdi, 0x20
test eax, eax
jne 0x14006afc0
mov r15b, 1
mov esi, dword [r14 + 0xc]
xor ebx, ebx
mov ebp, dword [r14 + 0x14]
add rsi, qword [rsp + 0x40]
add rbp, qword [rsp + 0x58]
mov edi, dword [r14 + 0x10]
mov r13, qword [rsp + 0xf0]
cmp rbx, rdi
jae 0x14006b07d
mov rdx, rbp
lea rcx, [rbx + rsi]
sub rdx, rsi
nop
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x14006b045
inc rbx
inc rcx
cmp rbx, rdi
jb 0x14006b030
jmp 0x14006b07d
mov r8, rbx
lea rcx, [rbx + rsi]
nop dword [rax]
movzx eax, byte [rcx + rdx]
cmp byte [rcx], al
je 0x14006b063
inc rbx
inc rcx
cmp rbx, rdi
jb 0x14006b050
mov ecx, dword [r14 + 0xc]
mov rdx, rbx
add rcx, r8
sub rdx, r8
add rcx, r13
call fcn.1400692b0
cmp rbx, rdi
jb 0x14006b024
movzx r13d, word [rsp + 0x108]
mov rbp, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
add r14, 0x28
sub rcx, 1
mov qword [rsp + 0x60], rcx
jne 0x14006aea0
mov r14, qword [rsp + 0x40]
mov edi, 1
test r14, r14
je 0x14006b0c0
mov rcx, r14
call qword [0x1402d9fb0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xf8]
test r14, r14
je 0x14006b119
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add rsp, 0xd8
pop r14
pop rdi
ret