Function at 0x14000685c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1401453f8]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [0x1402c9c90], 0
mov edx, 8
mov rax, qword gs:[0x60]
mov r8d, 0x2d0
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400068c8
mov ebx, 0xc0000017
jmp 0x140006b07
lea rcx, [rax + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
nop dword [rax + rax]
mov rax, qword gs:[0x60]
xorps xmm0, xmm0
mov rcx, qword [rax + 0x30]
movups xmmword [rdi + 0x90], xmm0
movups xmmword [rdi + 0xa0], xmm0
movups xmmword [rdi + 0xb0], xmm0
test rcx, rcx
jne 0x14000690f
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
and qword [rdi + 0x98], 0
mov ebp, 0x1000
and qword [rdi + 0xa0], 0
and qword [rdi + 0xb0], 0
and qword [rdi + 0xb8], 0
mov qword [rdi + 0xa8], rbp
mov qword [rdi + 0x90], rcx
lea r9, [rdi + 0x2c8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140022a18]
call qword [sym.imp.ntdll.dll_EtwEventRegister]
nop dword [rax + rax]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140006994
mov ebx, 0xc0000001
jmp 0x140006afa
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400069b9
lea rsi, [rsp + 0x50]
jmp 0x1400069bd
add rsi, 2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [rax + rax]
mov ebx, eax
call fcn.140008644
mov dword [rsp + 0x30], ebx
lea r14, str.aitstatic
mov r9, rax
mov qword [rsp + 0x28], rsi
lea rcx, [rdi + 0xc0]
mov qword [rsp + 0x20], r14
lea r8, str._sTempAslLog__S__s__d.txt
mov edx, 0x104
call fcn.140006714
mov ebx, eax
test eax, eax
js 0x140006afa
xor esi, esi
lea rax, [rdi + 8]
xor ebx, ebx
mov qword [rdi], rax
cmp byte [0x1402c9cb4], bl
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rbx
je 0x140006a2e
mov esi, dword [0x1402c9cb0]
jmp 0x140006a75
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
lea rcx, [rsp + 0x48]
call fcn.140005a68
test eax, eax
jns 0x140006a5f
lea rdx, str.OSDATASoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
lea rcx, [rsp + 0x48]
call fcn.140005a68
test eax, eax
jns 0x140006a5f
mov rbx, qword [rsp + 0x48]
jmp 0x140006a75
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140005474
mov esi, dword [rsp + 0x40]
mov dword [0x1402c9cb0], esi
mov byte [0x1402c9cb4], 1
test rbx, rbx
je 0x140006a96
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rax, qword [rdi]
mov edx, 0x40
mov dword [rax + 0x50], esi
mov rcx, qword [rdi]
sub r14, rcx
lea rax, [rdx + 0x7fffffbe]
test rax, rax
je 0x140006ac6
mov al, byte [r14 + rcx]
test al, al
je 0x140006ac6
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140006aa7
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov eax, dword [rdi + 0xa0]
cmp eax, ebp
cmova ebp, eax
mov eax, ebp
neg eax
and eax, ebp
cmp ebp, eax
jne 0x140006aef
mov rax, qword [rdi]
mov dword [rax + 0x4c], ebp
xor ebx, ebx
mov qword [0x1402c9c90], rdi
xor edi, edi
test rdi, rdi
je 0x140006b07
mov rcx, rdi
call fcn.140006b40
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140020b70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret