Function at 0x140006154
Capabilities:
Access pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x4c], 0
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
mov r8w, 1
mov dl, 1
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400061b2
xor eax, eax
jmp 0x1400066ee
jmp 0x1400061c2
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
je 0x1400066ea
cmp dword [rsp + 0x3c], 0
jl 0x1400066ea
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x1400061f3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
jmp 0x1400061ff
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xd0]
call fcn.140005cd8
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140005db8
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000631f
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x1400066ee
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000633e
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
jmp 0x14000634a
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400066c9
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140006375
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
jmp 0x140006381
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400063c4
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x1400063d3
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400063f4
movabs rax, 0x8000000000000000
mov qword [rsp + 0x78], rax
jmp 0x1400063fe
mov eax, 0x80000000
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x80], rax
jae 0x140006434
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movsx eax, byte [rcx + rax + 2]
test eax, eax
je 0x140006434
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x140006478
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140006456
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
jmp 0x140006465
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
and rax, 0xffff
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
call fcn.140005eb0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140006538
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400064c6
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
jmp 0x1400064d5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400064f9
movabs rax, 0x8000000000000000
mov qword [rsp + 0x90], rax
jmp 0x140006506
mov eax, 0x80000000
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x98], rax
jae 0x14000652b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movsx eax, byte [rcx + rax + 2]
mov dword [rsp + 0x3c], 0xc0000225
jmp 0x1400066c9
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400065cd
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
je 0x14000657c
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov qword [rax + rcx], rdx
jmp 0x1400065cb
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000659e
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
jmp 0x1400065ad
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
jmp 0x140006648
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
je 0x1400065fb
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
mov dword [rax + rcx], edx
jmp 0x140006648
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000661d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
jmp 0x14000662c
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140006666
mov qword [rsp + 0xb0], 8
jmp 0x140006672
mov qword [rsp + 0xb0], 4
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400066a8
mov qword [rsp + 0xb8], 8
jmp 0x1400066b4
mov qword [rsp + 0xb8], 4
mov eax, dword [rsp + 0x38]
add rax, qword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
jmp 0x14000631f
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x1400061b4
mov eax, dword [rsp + 0x3c]
add rsp, 0x100
pop rdi
ret