Function at 0x140009b60
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov r14, rcx
mov rdi, qword [0x140443560]
test rdi, rdi
je 0x140009b8a
add rdi, 0xffffffffffffffff
jmp 0x140009c9f
lea rdx, [0x14043d99d]
lea rcx, [rsp + 0x38]
mov r8d, 0xe
call fcn.140085f2d
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x140009c8f
mov r9, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140009c40
lea rax, [r8 + rbx]
mov rdx, r8
jmp 0x140009bd8
mov rdx, rdi
cmp rdx, rax
je 0x140009c40
lea rdi, [rdx + 1]
movzx ecx, byte [rdx]
test cl, cl
jns 0x140009bd0
add rdx, 2
cmp cl, 0xe0
jae 0x140009bf5
cmp rdi, rax
cmove rdx, rdi
jmp 0x140009bd3
cmp cl, 0xed
jne 0x140009c19
cmp rdi, rax
cmove rdx, rdi
cmp rdx, rax
je 0x140009c40
add rdx, 1
cmp rdi, rax
je 0x140009bd3
cmp byte [rdi], 0xa0
jb 0x140009bd3
jmp 0x140009ffb
cmp rdi, rax
mov rsi, rdx
cmove rsi, rdi
xor edx, edx
cmp rsi, rax
setne dl
add rdx, rsi
cmp cl, 0xf0
jb 0x140009bd3
xor ecx, ecx
cmp rdx, rax
setne cl
add rdx, rcx
jmp 0x140009bd3
test r8, r8
je 0x140009c8f
test rbx, rbx
je 0x140009c75
mov al, byte [r8]
cmp al, 0x2d
je 0x140009c68
cmp al, 0x2b
jne 0x140009f9c
add rbx, 0xffffffffffffffff
je 0x140009c75
lea rsi, [r8 + 1]
jmp 0x140009f9f
mov rsi, r8
cmp rbx, 1
jne 0x140009f9f
xor esi, esi
test r9, r9
je 0x140009c8a
mov rcx, qword [0x140443578]
xor edx, edx
call sub.kernel32.dll_HeapFree
test sil, sil
jne 0x140009c94
mov edi, 0x200000
lea rax, [rdi + 1]
xchg qword [0x140443560], rax
lea rcx, [0x1404434f8]
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rsi, qword [0x140443020]
cmp rsi, 0xffffffffffffffff
je 0x14000a046
lea rax, [rsi + 1]
mov qword [0x140443020], rax
test rsi, rsi
je 0x14000a0c9
lea rcx, [0x1404434f8]
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [0x140443578]
test rcx, rcx
jne 0x140009d02
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14000a020
mov rcx, rax
mov qword [0x140443578], rax
mov r8d, 0x30
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14000a020
mov r12, rax
mov qword [rax + 0x10], 0
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
movaps xmm6, xmmword [0x140098750]
movups xmmword [rax], xmm6
lock add qword [rax], 1
jle 0x14000a0c9
mov rcx, qword [0x140443578]
test rcx, rcx
jne 0x140009d64
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14000a027
mov rcx, rax
mov qword [0x140443578], rax
mov r8d, 0x28
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14000a027
mov r15, rax
mov qword [rax + 0x10], 0
movups xmmword [rax], xmm6
lock add qword [rax], 1
jle 0x14000a0c9
mov al, byte [0x1404435e0]
test al, al
je 0x140009e26
mov byte [0x1404435e0], 1
mov eax, dword [0x1404435f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x58], 1
jne 0x140009dcd
lea rax, [rax + 0x60]
jmp 0x140009ddb
call fcn.140084e73
test rax, rax
je 0x14000a0c9
mov rsi, qword [rax]
mov qword [rax], 0
test rsi, rsi
je 0x140009e26
lock add qword [rsi], 1
jle 0x14000a0c9
mov byte [0x1404435e0], 1
mov qword [rsp + 0x38], rsi
mov eax, dword [0x1404435f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x58], 1
jne 0x140009e60
lea rax, [rax + 0x60]
jmp 0x140009e6e
mov al, byte [0x1404435e0]
test al, al
je 0x140009e5c
mov byte [0x1404435e0], 1
mov eax, dword [0x1404435f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x58], 1
jne 0x140009e7b
lea rax, [rax + 0x60]
jmp 0x140009e89
xor esi, esi
jmp 0x140009ea6
call fcn.140084e73
test rax, rax
je 0x14000a0b8
mov rcx, qword [rax]
mov qword [rax], rsi
test rcx, rcx
jne 0x140009e9a
jmp 0x140009ea6
call fcn.140084e73
test rax, rax
je 0x14000a0c9
mov rcx, qword [rax]
mov qword [rax], 0
xor esi, esi
test rcx, rcx
je 0x140009ea6
lock sub qword [rcx], 1
jne 0x140009ea6
call fcn.14000aef0
mov rcx, qword [0x140443578]
test rcx, rcx
jne 0x140009eca
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14000a02e
mov rcx, rax
mov qword [0x140443578], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14000a02e
mov rbx, rax
mov qword [rax], r12
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r15
mov rcx, qword [0x140443578]
test rcx, rcx
jne 0x140009f12
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14000a035
mov rcx, rax
mov qword [0x140443578], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14000a035
mov rsi, rax
mov qword [rax], rbx
lea rax, [0x140098f88]
mov qword [rsi + 8], rax
add rdi, 0xfffe
and rdi, 0xffffffffffff0001
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140090546]
xor ecx, ecx
mov rdx, rdi
mov r9, rsi
call qword [sym.imp.kernel32.dll_CreateThread]
test rax, rax
je 0x14000a04f
mov qword [r14], 1
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r15
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rsi, r8
xor eax, eax
mov r10d, 0xa
nop word [rax + rax]
mov rdi, rax
test rbx, rbx
je 0x140009fea
movzx ecx, byte [rsi]
add ecx, 0xffffffd0
cmp ecx, 9
ja 0x140009fda
mov rax, rdi
mul r10
jo 0x140009fda
add rsi, 1
mov ecx, ecx
add rbx, 0xffffffffffffffff
add rax, rcx
jae 0x140009fb0
xor esi, esi
test r9, r9
jne 0x140009c7c
jmp 0x140009c8a
mov sil, 1
test r9, r9
jne 0x140009c7c
jmp 0x140009c8a
test r8, r8
je 0x140009c8f
test r9, r9
je 0x140009c8f
mov rcx, qword [0x140443578]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x140009c8f
mov ecx, 0x30
jmp 0x14000a03a
mov ecx, 0x28
jmp 0x14000a03a
mov ecx, 0x18
jmp 0x14000a03a
mov ecx, 0x10
mov edx, 8
call fcn.1400949bf
ud2
call fcn.1400850e9
ud2
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x14000a07e
cmp qword [rbx + 0x10], 0x11
jb 0x14000a06d
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140443578]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140443578]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
call qword [sym.imp.kernel32.dll_GetLastError]
lock sub qword [r15], 1
jne 0x14000a0a4
mov rcx, r15
call fcn.14000af50
lock sub qword [r12], 1
jne 0x14000a0c9
mov rcx, r12
call fcn.14000afd0
ud2
lock sub qword [rsi], 1
jne 0x14000a0c9
lea rcx, [rsp + 0x38]
call fcn.140084ce3
ud2