Function at 0x140008d78
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [rbp + 0xc0]
mov r14, r9
or qword [rsp + 0x48], 0xffffffffffffffff
mov r13, rdx
mov rsi, qword [rbp + 0xa0]
mov r12, rcx
mov r15, qword [rbp + 0xa8]
mov qword [rsp + 0x50], rax
lea rax, [r9 - 1]
mov qword [rsp + 0x40], r8
cmp rax, 0xfffffffffffffffd
ja 0x140008e0a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x48]
and dword [rsp + 0x28], 0
mov rcx, rax
and dword [rsp + 0x20], 0
mov r8, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rsp + 0x48]
mov r14d, 1
jmp 0x140008e40
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], Ordinal_134
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r14d, [r9 + 1]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140008fdb
xor edx, edx
lea rcx, [rbp - 0x10]
lea r8d, [rdx + 0x48]
call sub.msvcrt.dll_memset
and dword [rsp + 0x5c], 0
lea rcx, [rbp - 0x70]
and qword [rsp + 0x70], 0
mov r14d, 0x58
mov r8d, r14d
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x40]
mov rcx, qword [0x140011170]
mov qword [rsp + 0x60], rax
mov eax, dword [rbp + 0xb0]
mov dword [rbp - 0x58], eax
mov eax, dword [rbp + 0xb8]
mov dword [rbp - 0x24], eax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x58]
mov dword [rbp - 0x70], r14d
mov r14d, 1
mov qword [rsp + 0x68], rbx
mov ebx, r14d
mov qword [rbp - 0x48], rax
mov dword [rsp + 0x58], Ordinal_35
mov dword [rbp - 0x50], r14d
call qword [sym.imp.iertutil.dll_Ordinal_658]
test eax, eax
je 0x140008f11
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x28], 0
mov r8d, r14d
mov rcx, qword [0x140011170]
xor edx, edx
mov dword [rsp + 0x20], 4
call qword [sym.imp.iertutil.dll_Ordinal_650]
test eax, eax
js 0x140008f11
xor ebx, ebx
cmp dword [rsp + 0x40], ebx
sete bl
shl ebx, 0xd
bts ebx, 0xe
mov dword [rbp - 0x28], ebx
test r15, r15
je 0x140008f57
mov rcx, rsi
call fcn.140006330
mov rcx, qword [rsp + 0x48]
mov qword [rbp], rax
mov eax, 2
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x58], eax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x10], 0x48
mov qword [rbp - 8], r15
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rcx
and qword [rsp + 0x28], 0
lea rax, [rbp - 0x70]
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x78]
and dword [rsp + 0x20], 0
lea r8, [0x140008c90]
xor edx, edx
mov qword [rbp - 0x78], rax
xor ecx, ecx
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r13
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140008fdb
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x140008fcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x40], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x40]
jmp 0x140008fef
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
cmp ebx, r14d
mov eax, 0x800b010b
cmovge ebx, eax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14000900f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret