Function at 0x140021660
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r9
mov rbx, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r9
mov edx, 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [rsp + 0x30], Ordinal_27
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400216e3
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002174a
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140021721
mov rdx, qword [rbx]
lea rcx, [0x140084508]
call fcn.14001d3c0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002173a
mov r8, qword [rbx]
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rbp, rax
mov qword [rsp + 0x20], 0x1000
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x14002181f
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002177f
mov rdx, qword [rbx]
lea rcx, [0x140084520]
call fcn.14001d3c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400217cf
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400217ca
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002190a
mov rcx, r8
call fcn.140073b54
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140021818
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140021813
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021911
mov rcx, r8
call fcn.140073b54
xor al, al
jmp 0x1400218d3
xor edx, edx
mov r8d, 0x1000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14002183c
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002188c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140021887
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002190a
mov rcx, r8
call fcn.140073b54
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400218d1
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400218cc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021911
mov rcx, r8
call fcn.140073b54
mov al, 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3