Function at 0x1400ae870
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x100
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, qword [rbp + 0x77]
xor edx, edx
mov rbx, r8
mov dword [rbp - 9], edx
mov qword [rsp + 0x48], rbx
mov r15d, edx
mov byte [rsp + 0x40], r9b
mov r12, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov r8d, 1
lea r9, [rbp - 9]
mov dl, r8b
mov rcx, r12
mov r13, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
xor ecx, ecx
test rax, rax
je 0x1400aec88
cmp dword [rax + 0xc], ecx
je 0x1400aec85
lea r14, [rax + 0x10]
test r15d, r15d
js 0x1400aec85
mov eax, dword [r14 - 0x10]
test eax, eax
jne 0x1400ae901
mov eax, dword [r14]
mov edx, dword [r14 - 4]
mov edi, eax
add rdx, r12
xor eax, eax
mov word [rbp - 0x19], cx
mov word [rbp - 0x29], cx
add rdi, r12
mov word [rsp + 0x50], cx
mov word [rbp - 1], cx
mov dword [rsp + 0x44], ecx
lea rcx, [rbp - 1]
mov qword [rbp - 0x17], rax
mov dword [rbp - 0xf], eax
mov word [rbp - 0xb], ax
mov qword [rbp - 0x27], rax
mov dword [rbp - 0x1f], eax
mov word [rbp - 0x1b], ax
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
mov qword [rbp + 1], rax
mov dword [rbp + 9], eax
mov word [rbp + 0xd], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
xor edx, edx
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x19]
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400af118
lea rdx, [rsp + 0x50]
mov r15d, eax
lea rcx, [rbp - 0x29]
call fcn.1400aca38
cmp r15d, 0xc0000144
je 0x1400aec6a
mov r8b, byte [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400acf58
xor r10d, r10d
mov rbx, rax
test rax, rax
jne 0x1400aeb3b
test byte [rbp + 0x7f], 1
je 0x1400aea30
xor edx, edx
lea r8d, [rax + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140034240
mov eax, dword [rbp + 0x7f]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, qword [rsp + 0x48]
bts eax, 0xf
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov byte [rsp + 0x20], dl
lea rdx, [rbp - 0x29]
call fcn.1400ae03c
xor r10d, r10d
mov r15d, eax
test eax, eax
js 0x1400aec6a
mov rbx, qword [rbp - 0x79]
jmp 0x1400aeb32
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x1400aea70
mov rcx, qword [rsi + 0x30]
lea rdx, [rsp + 0x50]
lea rax, [rcx + 0x1010]
mov dword [rcx + 0x1000], 0x8000000
mov qword [rcx + 0x1008], rax
mov rcx, qword [rsi + 0x30]
add rcx, 0x1000
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
jmp 0x1400aeacc
mov ecx, dword [rsi + 0x30]
mov edx, 0x800
mov rax, qword [rsi + 0x30]
mov ebx, 0x1010
add ecx, ebx
mov r8d, edx
mov dword [rax + 0x1004], ecx
mov rax, qword [rsi + 0x30]
mov word [rax + 0x1002], dx
xor edx, edx
mov rcx, qword [rsi + 0x30]
movzx eax, word [rsp + 0x50]
mov word [rcx + 0x1000], ax
mov rcx, qword [rsi + 0x30]
add rcx, rbx
call fcn.140034240
mov rcx, qword [rsi + 0x30]
movzx r8d, word [rsp + 0x50]
add rcx, rbx
mov rdx, qword [rsp + 0x58]
call fcn.140034340
mov rax, qword [rsi + 0x30]
xor edx, edx
mov dword [rax + 0x1860], edx
lea r9d, [rdx + 4]
mov rax, qword [rsi + 0x30]
mov r8, qword [rsi + 0x50]
lea rcx, [rax + 0x1858]
add rax, 0x1000
cmp byte [rsi + 0x59], dl
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
sete r10b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
mov rdx, rsi
movzx ecx, r10b
call fcn.1400afe84
mov rax, qword [rsi + 0x30]
xor r10d, r10d
mov rbx, qword [rax + 0x1858]
test rbx, rbx
jne 0x1400aeb3b
mov r15d, dword [rax + 0x1860]
test rbx, rbx
je 0x1400aec6a
mov r11d, 0x20b
movzx ecx, word [r13 + 0x18]
cmp cx, r11w
jne 0x1400aeb51
mov rax, qword [rdi]
jmp 0x1400aeb53
mov eax, dword [rdi]
test rax, rax
je 0x1400aec40
cmp cx, r11w
jne 0x1400aeb67
mov r8, qword [rdi]
jmp 0x1400aeb6a
mov r8d, dword [rdi]
cmp cx, r11w
jne 0x1400aeb75
mov rdx, qword [rdi]
jmp 0x1400aeb77
mov edx, dword [rdi]
cmp cx, r11w
mov eax, 0x80000000
movabs r9, 0x8000000000000000
cmove rax, r9
cmp rdx, rax
jae 0x1400aeba0
lea rdx, [r12 + 2]
add rdx, r8
cmp byte [rdx], r10b
jne 0x1400aebb0
cmp cx, r11w
jne 0x1400aebab
mov rax, qword [rdi]
jmp 0x1400aebad
mov eax, dword [rdi]
movzx edx, ax
mov r8, qword [rsi]
lea r9, [rbp - 0x29]
mov rcx, rbx
call fcn.1400ad218
xor r10d, r10d
mov r8, rax
test rax, rax
je 0x1400aec3a
mov eax, dword [r14]
mov r11d, 0x20b
cmp word [r13 + 0x18], r11w
jne 0x1400aebf5
test eax, eax
je 0x1400aebec
mov edx, dword [rsp + 0x44]
lea rcx, [r12 + rax]
mov qword [rdx + rcx], r8
jmp 0x1400aec0c
mov rax, qword [rdi]
mov qword [rax + r12], r8
jmp 0x1400aec0c
test eax, eax
je 0x1400aec06
mov ecx, dword [rsp + 0x44]
add rax, r12
mov dword [rcx + rax], r8d
jmp 0x1400aec0c
mov eax, dword [rdi]
mov dword [rax + r12], r8d
movzx ecx, word [r13 + 0x18]
mov edx, 4
cmp cx, r11w
mov eax, edx
lea r8d, [rdx + 4]
cmove eax, r8d
add rdi, rax
mov eax, edx
cmp cx, r11w
cmove eax, r8d
add dword [rsp + 0x44], eax
jmp 0x1400aeb41
mov r15d, 0xc0000225
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
add r14, 0x14
xor ecx, ecx
cmp dword [r14 - 4], ecx
je 0x1400aec85
mov rbx, qword [rsp + 0x48]
jmp 0x1400ae8ed
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x1400aec88
mov eax, r15d
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14002ff90
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret