Function at 0x14000a248
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 [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [0x140028158], 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 0x14000a2b4
mov ebx, 0xc0000017
jmp 0x14000a4e5
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 0x14000a2fb
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, [0x14001d638]
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 sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x14000a379
mov ebx, 0xc0000001
jmp 0x14000a4d8
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000a39e
lea rsi, [rsp + 0x50]
jmp 0x14000a3a2
add rsi, 2
call sub.KERNEL32.dll_GetCurrentProcessId
mov ebx, eax
call fcn.14000c1ec
mov dword [rsp + 0x30], ebx
lea r14, [0x14001d710]
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.14000a104
mov ebx, eax
test eax, eax
js 0x14000a4d8
xor esi, esi
lea rax, [rdi + 8]
xor ebx, ebx
mov qword [rdi], rax
cmp byte [0x140028180], bl
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rbx
je 0x14000a40c
mov esi, dword [0x14002817c]
jmp 0x14000a453
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
lea rcx, [rsp + 0x48]
call fcn.140009458
test eax, eax
jns 0x14000a43d
lea rdx, str.OSDATASoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
lea rcx, [rsp + 0x48]
call fcn.140009458
test eax, eax
jns 0x14000a43d
mov rbx, qword [rsp + 0x48]
jmp 0x14000a453
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140008e64
mov esi, dword [rsp + 0x40]
mov dword [0x14002817c], esi
mov byte [0x140028180], 1
test rbx, rbx
je 0x14000a474
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 0x14000a4a4
mov al, byte [r14 + rcx]
test al, al
je 0x14000a4a4
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14000a485
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 0x14000a4cd
mov rax, qword [rdi]
mov dword [rax + 0x4c], ebp
xor ebx, ebx
mov qword [0x140028158], rdi
xor edi, edi
test rdi, rdi
je 0x14000a4e5
mov rcx, rdi
call fcn.14000a51c
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400199f0
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