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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
xor edi, edi
mov r14, rdx
mov r10, rcx
mov ebx, edi
test rcx, rcx
je 0x140006ada
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006ada
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140006ada
mov ecx, 0x20b
cmp word [rax + r10 + 0x18], cx
jne 0x1400068bd
mov r15d, dword [rax + r10 + 0x8c]
mov ecx, dword [rax + r10 + 0x88]
jmp 0x1400068c7
mov r15d, dword [rax + r10 + 0x7c]
mov ecx, dword [rax + r10 + 0x78]
mov edx, ecx
mov r8d, edi
add rdx, r10
mov eax, dword [rdx + 0x14]
mov r12d, dword [rdx + 0x24]
mov r13d, dword [rdx + 0x20]
add r12, r10
mov esi, dword [rdx + 0x1c]
add r13, r10
add rsi, r10
mov dword [rbp + 0x1c0], eax
test eax, eax
je 0x140006ad5
cmp r14, 0xffff
ja 0x14000690f
movzx r9d, r8w
mov ecx, r9d
movzx eax, r14w
add ecx, dword [rdx + 0x10]
cmp eax, ecx
jmp 0x140006948
cmp r8d, dword [rdx + 0x18]
jae 0x140006ada
mov eax, r8d
mov rdi, r14
mov ecx, dword [r13 + rax*4]
movzx r9d, word [r12 + rax*2]
add rcx, r10
sub rdi, rcx
movzx eax, byte [rcx]
movzx r11d, byte [rcx + rdi]
sub eax, r11d
jne 0x140006944
inc rcx
test r11d, r11d
jne 0x14000692f
xor edi, edi
test eax, eax
je 0x14000695b
inc r8d
cmp r8d, dword [rbp + 0x1c0]
jb 0x1400068f4
jmp 0x140006ad5
movzx eax, r9w
mov ebx, dword [rsi + rax*4]
add rbx, r10
cmp rbx, rdx
jb 0x140006ad5
mov eax, r15d
add rax, rdx
cmp rbx, rax
ja 0x140006ad5
mov r15d, 0x200
lea rcx, [rbp - 0x80]
mov r8d, r15d
xor edx, edx
call fcn.1400021c0
mov rsi, qword [rbp + 0x1d0]
xor r14d, r14d
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x70], xmm1
test rsi, rsi
je 0x140006ada
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
xorps xmm0, xmm0
lea rax, [rbp - 0x80]
movups xmmword [rsp + 0x30], xmm0
xor r8d, r8d
mov word [rsp + 0x32], r15w
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx eax, word [rsp + 0x30]
mov ecx, r14d
shr eax, 1
je 0x140006a21
mov r8, qword [rsp + 0x38]
mov edx, ecx
cmp word [r8 + rdx*2], 0x2e
je 0x140006a0f
inc ecx
cmp ecx, eax
jb 0x1400069fd
jmp 0x140006a21
movzx eax, cx
mov edi, ecx
add ax, ax
mov word [rsp + 0x30], ax
mov word [r8 + rdx*2], r14w
mov rdx, qword [rsp + 0x48]
inc rdx
mov ecx, edi
add rdx, rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x14000a260]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rax, [rsp + 0x60]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rax, qword [rbp + 0x1d8]
xorps xmm1, xmm1
mov r8d, 1
mov qword [rsp + 0x20], rax
mov rdx, rsi
xor ecx, ecx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x50], xmm1
call fcn.14000887c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000a014
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
lea rdx, [rsp + 0x50]
mov rcx, rsi
test rax, rax
setne r8b
call fcn.140006b80
mov rdx, qword [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8, rsi
mov rcx, rax
call fcn.140006844
lea rcx, [rsp + 0x60]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, rbx
jmp 0x140006adc
xor eax, eax
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret