Function at 0x140006240
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14012c0c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, r8
xor esi, esi
mov r14d, esi
mov dword [rbp - 0x31], esi
lea r9, [rbp - 0x31]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call fcn.14006b306
cmp eax, 0xc0000004
jne 0x1400062e7
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x31]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp - 0x31]
mov r8d, dword [rbp - 0x31]
mov rdx, rax
mov ecx, 0xb
call fcn.14006b306
cmp eax, 0xc0000004
je 0x1400062a0
test eax, eax
js 0x140006778
mov r12d, esi
cmp dword [r14], esi
jbe 0x140006778
nop dword [rax + rax]
mov eax, r12d
imul rcx, rax, 0x128
lea r15, [rcx + r14]
movzx edx, word [r15 + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, r14
mov qword [rbp - 1], rsi
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], rsi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140006340
lea rcx, [rbp - 1]
call fcn.140007690
nop
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rcx, qword [rbp + 7]
lea rdx, str.ntoskrnl.exe
call fcn.140093d90
test eax, eax
jne 0x1400066bd
lea rdx, [r15 + 0x30]
mov qword [rbp - 0x29], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140006394
lea rcx, [rbp - 0x29]
call fcn.140007690
nop
lea rcx, str.SYSTEMROOT
call fcn.140094da0
mov qword [rbp - 0x59], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], rsi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400063d0
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140007690
nop
mov r8d, 1
lea rdx, [0x14011337c]
lea rcx, [rbp - 0x59]
call fcn.140007100
mov rsi, rax
lea rdi, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x11]
cmp rcx, 0xc
jb 0x140006478
lea rbx, [rcx + rdi]
lea r8, [rbx - 0xb]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call fcn.1400f0c90
test rax, rax
je 0x140006478
nop word [rax + rax]
movabs rcx, 0x526d65747379535c
cmp qword [rax], rcx
jne 0x14000645c
cmp dword [rax + 8], 0x5c746f6f
je 0x1400067b8
inc rax
lea r8, [rbx - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call fcn.1400f0c90
test rax, rax
jne 0x140006440
mov rax, 0xffffffffffffffff
mov rcx, qword [rsi + 0x18]
lea r9, [rsi + 8]
cmp qword [rsi + 0x20], 0xf
jbe 0x140006491
mov r9, qword [r9]
mov qword [rsp + 0x20], rcx
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140006f40
nop
lea rcx, [rbp - 0x59]
call fcn.140003c90
mov rax, qword [rbp - 0x39]
cmp rax, 0xf
jbe 0x140006534
mov rdi, qword [rbp - 0x51]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x140006529
test rbx, rbx
je 0x140006529
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x140112f3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3b4
lea rdx, [0x140112f40]
mov ecx, 2
call fcn.14007c770
cmp eax, 1
jne 0x140006500
int3
mov qword [rsp + 0x20], 0
mov r9d, 0x3b4
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
lea rdx, [0x140113074]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.14007d220
mov rdx, rbx
mov rcx, rdi
call fcn.140007b10
xor esi, esi
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], sil
mov rcx, qword [rbp - 0x59]
mov qword [rbp - 0x59], rsi
mov edx, 0x10
call fcn.140007b10
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rcx, qword [rbp - 0x21]
xor edx, edx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x1400067ea
movsxd rcx, dword [rdi + 0x3c]
cmp dword [rcx + rdi], 0x4550
jne 0x1400067ea
mov edx, dword [rcx + rdi + 0x88]
test edx, edx
je 0x1400067ea
mov r11d, dword [rdx + rdi + 0x1c]
lea rbx, [rdi + r11]
mov r9d, dword [rdx + rdi + 0x20]
add r9, rdi
mov esi, dword [rdx + rdi + 0x24]
add rsi, rdi
xor r10d, r10d
test r11d, r11d
je 0x140006607
nop word [rax + rax]
mov r8d, dword [r9]
add r8, rdi
mov rax, r13
sub r8, r13
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400065f3
inc rax
test ecx, ecx
jne 0x1400065e0
test edx, edx
je 0x1400067c0
inc r10d
add r9, 4
cmp r10d, r11d
jb 0x1400065d0
lea rcx, [rbp - 0x29]
call fcn.140003c90
mov rax, qword [rbp - 9]
cmp rax, 0xf
jbe 0x140006698
mov rdi, qword [rbp - 0x21]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x14000668d
test rbx, rbx
je 0x14000668d
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x140112f3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3b4
lea rdx, [0x140112f40]
mov ecx, 2
call fcn.14007c770
cmp eax, 1
jne 0x140006664
int3
mov qword [rsp + 0x20], 0
mov r9d, 0x3b4
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
lea rdx, [0x140113074]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.14007d220
mov rdx, rbx
mov rcx, rdi
call fcn.140007b10
xor esi, esi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], sil
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], rsi
mov edx, 0x10
call fcn.140007b10
nop
lea rcx, [rbp - 1]
call fcn.140003c90
mov rax, qword [rbp + 0x1f]
cmp rax, 0xf
jbe 0x14000674a
mov rdi, qword [rbp + 7]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x14000673f
test rbx, rbx
je 0x14000673f
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x140112f3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3b4
lea rdx, [0x140112f40]
mov ecx, 2
call fcn.14007c770
cmp eax, 1
jne 0x14000671a
int3
mov qword [rsp + 0x20], rsi
mov r9d, 0x3b4
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
lea rdx, [0x140113074]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.14007d220
mov rdx, rbx
mov rcx, rdi
call fcn.140007b10
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov rcx, qword [rbp - 1]
mov qword [rbp - 1], rsi
mov edx, 0x10
call fcn.140007b10
inc r12d
cmp r12d, dword [r14]
jb 0x140006300
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140070800
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rax, rdi
jmp 0x14000647f
movzx ecx, word [rsi + r10*2]
mov ebx, dword [rbx + rcx*4]
add rbx, qword [r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
jmp 0x1400067ed
mov rbx, rsi
lea rcx, [rbp - 0x29]
call fcn.140006e60
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x29], rsi
mov edx, 0x10
call fcn.140007b10
nop
lea rcx, [rbp - 1]
call fcn.140003c90
mov rdi, qword [rbp + 0x1f]
cmp rdi, 0xf
jbe 0x14000689b
mov rsi, qword [rbp + 7]
inc rdi
test rsi, rsi
jne 0x14000688e
test rdi, rdi
je 0x14000688e
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x140112f3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3b4
lea rdx, [0x140112f40]
mov ecx, 2
call fcn.14007c770
cmp eax, 1
jne 0x140006865
int3
mov qword [rsp + 0x20], 0
mov r9d, 0x3b4
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
lea rdx, [0x140113074]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.14007d220
mov rdx, rdi
mov rcx, rsi
call fcn.140007b10
xor esi, esi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov rcx, qword [rbp - 1]
mov qword [rbp - 1], rsi
mov edx, 0x10
call fcn.140007b10
mov rax, rbx
jmp 0x14000678b