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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x320
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x330], 0
jne 0x14003ea5c
mov dword [rsp + 0x4c], 1
jmp 0x14003ea64
mov dword [rsp + 0x4c], 0
cmp dword [rsp + 0x4c], 0
je 0x14003ea92
xor r9d, r9d
mov r8d, 0x15d
lea rdx, [0x140046b60]
lea rcx, [0x140046cf0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x68], 0
jmp 0x14003ea9a
mov dword [rsp + 0x68], 1
cmp qword [rsp + 0x330], 0
jne 0x14003eaac
xor eax, eax
jmp 0x14003efc9
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003eac2
xor eax, eax
jmp 0x14003efc9
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x330]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x14003eb0e
xor eax, eax
jmp 0x14003efc9
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14003eb5b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0x88]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x48], eax
jmp 0x14003eb90
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x78]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x34], 0
jmp 0x14003ebec
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x34], eax
jae 0x14003efc4
mov eax, 0xffff
mov word [rsp + 0x30], ax
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x338], 0xffff
ja 0x14003ec2e
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x30], ax
jmp 0x14003ec87
cmp qword [rsp + 0x338], 0xffff
jbe 0x14003ec80
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x34], eax
jae 0x14003ec80
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xa0]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x30], ax
jmp 0x14003ec87
xor eax, eax
jmp 0x14003efc9
cmp qword [rsp + 0x338], 0xffff
ja 0x14003ecae
movzx eax, word [rsp + 0x338]
movzx ecx, word [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x14003ecf3
cmp qword [rsp + 0x338], 0xffff
jbe 0x14003efbf
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x338]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14003ece6
inc rax
test dl, dl
jne 0x14003ecd3
xor eax, eax
jmp 0x14003eceb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14003efbf
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x330]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x60], rax
jb 0x14003efbd
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x60], rax
ja 0x14003efbd
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
cmp qword [rsp + 0x340], 0
jne 0x14003edbc
xor eax, eax
jmp 0x14003efc9
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8w, 0x200
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb8]
call fcn.140008320
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x38], 0
jmp 0x14003ee16
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0xb0], rax
movzx ecx, word [rsp + 0xb8]
xor edx, edx
mov eax, ecx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0xb0]
cmp rcx, rax
jae 0x14003ee85
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x14003ee83
mov eax, dword [rsp + 0x38]
shl rax, 1
mov word [rsp + 0xb8], ax
mov eax, dword [rsp + 0x38]
xor ecx, ecx
mov rdx, qword [rsp + 0xc0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
jmp 0x14003ee85
jmp 0x14003ee0c
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xd0]
lea rax, [rcx + rax + 1]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x140046d00]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rax, [rsp + 0xf8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
mov r8d, 1
mov rdx, qword [rsp + 0x340]
xor ecx, ecx
call fcn.140043f10
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xf8]
call fcn.140040300
mov rcx, qword [rsp + 0x340]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x14003ef4d
mov dword [rsp + 0x54], 1
jmp 0x14003ef55
mov dword [rsp + 0x54], 0
movzx r8d, byte [rsp + 0x54]
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x340]
call fcn.14003f140
mov qword [rsp + 0x88], rax
lea r9, [rsp + 0xe8]
mov r8, qword [rsp + 0x340]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x88]
call fcn.14003e9e0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xf8]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, qword [rsp + 0x90]
jmp 0x14003efc9
jmp 0x14003efc4
jmp 0x14003ebe2
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140021990
add rsp, 0x320
pop rdi
ret