Function at 0x180016540
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18003ca28]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea ebp, [r8 + 0xc]
xor ebx, ebx
mov r15, rdx
mov esi, r8d
lea rdx, [0x180000000]
mov r14, rcx
cmp r8d, ebp
jae 0x1800166b4
mov r12, qword [rsp + 0x38]
lea edi, [r8 - 0x8e]
mov r13, qword [rsp + 0x38]
cmp edi, 0x29
ja case.0x1800165ae.11
movzx eax, byte [rdx + rdi + 0x168ac]
mov ecx, dword [rdx + rax*4 + 0x1687c]
add rcx, rdx
jmp rcx
mov byte [rsp + 0x4e], bl
jmp case.0x1800165ae.11
mov r8d, 4
lea rdx, [0x1800336ec]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 2
lea rdx, [0x180033718]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rdx, [0x180000000]
jmp case.0x1800165ae.11
mov qword [0x18003cb08], r14
mov qword [r14 + 0x80], r15
jmp case.0x1800165ae.11
mov rdx, r15
mov rcx, r14
call qword [r14]
test al, al
je 0x180016652
mov rax, qword [r15 + 8]
cmp qword [r15], rax
je 0x180016652
lea rdx, [0x180000000]
jmp case.0x1800165ae.11
mov byte [rsp + 0x48], bl
jmp case.0x1800165ae.11
mov qword [rsp + 0x28], rbx
lea r8, [0x180017130]
mov r9, r14
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
jne 0x180016696
mov byte [rsp + 0x30], bl
jmp case.0x1800166eb.3
mov rax, r13
xchg qword [0x18003cb10], rax
jmp case.0x1800165ae.11
test r14, r14
je 0x1800166ed
mov edx, 0x76
mov rcx, r14
call fcn.180005310
test eax, eax
je 0x1800166ed
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0xb
call fcn.180004850
mov r12, rax
lea rdx, [0x180000000]
jmp case.0x1800165ae.11
mov byte [rsp + 0x30], 1
inc edi
lea eax, [rdi + 0x8e]
cmp eax, ebp
jb 0x180016593
lea ebp, [rsi - 0xd]
cmp esi, ebp
jbe case.0x1800166eb.3
mov r15, qword [rsp + 0x38]
lea edi, [rsi - 0x7f]
mov rsi, qword [rsp + 0x38]
nop dword [rax]
cmp edi, 0x29
ja case.0x1800166eb.12
movzx eax, byte [rdx + rdi + 0x1690c]
mov ecx, dword [rdx + rax*4 + 0x168d8]
add rcx, rdx
jmp rcx
mov rax, rbx
jmp 0x180016856
mov rdx, qword [r12]
mov r8d, 0x5d
mov rcx, r14
call fcn.180013060
jmp 0x180016856
mov rax, rbx
xchg qword [0x18003cb10], rax
jmp case.0x1800166eb.12
xor eax, eax
lock cmpxchg qword [0x18003cb10], rbx
mov rsi, rax
je case.0x1800166eb.3
jmp case.0x1800166eb.12
mov r8d, 4
lea rdx, [0x180033740]
lea rcx, [rsp + 0x54]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
jmp case.0x1800166eb.12
mov r8d, 1
lea rdx, [0x1800337a9]
lea rcx, [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rcx, str.ntdll
mov byte [rsp + 0x60], bl
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
jmp case.0x1800166eb.12
mov byte [rsp + 0x4f], bl
jmp case.0x1800166eb.12
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
mov edx, 0xde
xor ecx, ecx
call fcn.180006c10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x1800166eb.12
mov r8d, 2
mov byte [rsp + 0x58], bl
lea rdx, [0x1800337d3]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 5
lea rdx, [0x180033817]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
jmp case.0x1800166eb.12
mov byte [rsp + 0x4e], 0x79
jmp case.0x1800166eb.12
mov r8d, 2
lea rdx, [0x180033824]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
jmp case.0x1800166eb.12
movzx eax, word [0x180033844]
mov word [rsp + 0x51], ax
movzx eax, byte [0x180033846]
mov byte [rsp + 0x53], al
mov byte [rsp + 0x54], bl
jmp case.0x1800166eb.12
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [r14 + 0x20], rax
setne byte [rsp + 0x30]
dec edi
lea rdx, [0x180000000]
lea eax, [rdi + 0x7f]
cmp eax, ebp
ja 0x1800166d0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002d670
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret