Function at 0x180020c30
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push r14
sub rsp, 0xf0
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180111b10]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov r14, rcx
cmp edx, 1
jne 0x180020f23
call fcn.18001f450
test al, al
jne 0x180020c7e
xor eax, eax
jmp 0x180020f28
mov cl, 1
call fcn.180080674
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x58]
call fcn.18004b430
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180006b30
mov rcx, rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xc0], 8
mov r10, qword [rax + 0x10]
mov qword [rsp + 0xb0], r10
cmp qword [rax + 0x18], 8
jb 0x180020cd4
mov rcx, qword [rax]
mov eax, 8
cmp r10, rax
cmovb rax, r10
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x180020d46
mov qword [rsp + 0x48], rax
lea rdx, str.wajam_64
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
test rax, rax
je 0x180020d46
movzx r8d, word [rcx]
movzx r9d, word [rdx]
cmp r8w, r9w
je 0x180020d2a
mov eax, 1
or rdi, 0xffffffffffffffff
cmp r8w, r9w
cmovb eax, edi
xor ebx, ebx
jmp 0x180020d4e
add rcx, 2
mov qword [rsp + 0x40], rcx
add rdx, 2
mov qword [rsp + 0x50], rdx
dec rax
mov qword [rsp + 0x48], rax
jmp 0x180020d03
xor ebx, ebx
or rdi, 0xffffffffffffffff
mov eax, ebx
movsxd rcx, eax
mov qword [rsp + 0xa0], rcx
test eax, eax
je 0x180020d63
mov dword [rsp + 0x34], ecx
jmp 0x180020d80
cmp r10, 8
jae 0x180020d71
mov ecx, edi
mov dword [rsp + 0x34], ecx
jmp 0x180020d80
mov eax, ebx
cmp r10, 8
setne al
mov ecx, eax
mov dword [rsp + 0x34], eax
test ecx, ecx
sete sil
mov byte [rsp + 0x30], sil
cmp qword [rsp + 0x90], 8
jb 0x180020da0
mov rcx, qword [rsp + 0x78]
call fcn.180085648
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x78], bx
cmp qword [rsp + 0x70], 8
jb 0x180020dcb
mov rcx, qword [rsp + 0x58]
call fcn.180085648
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180020e09
mov rax, qword [rcx]
call qword [rax + select]
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x180020e09
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
test sil, sil
je 0x180020e18
mov eax, 1
jmp 0x180020f28
mov qword [0x18011f818], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x18011f810], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.180020f60
cmp word [rax], 0
jne 0x180020e44
mov r8, rbx
jmp 0x180020e5b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180020e50
mov rdx, rax
lea rcx, [0x1801130c8]
call fcn.180005f10
mov rcx, r14
call fcn.18004bfc0
mov dword [rsp + 0xd0], ebx
xor eax, eax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180020bb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.180063680
nop
mov rax, qword [rsp + 0xd8]
test rax, rax
je 0x180020ed1
mov rbx, qword [rax]
mov edx, select
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rbx, qword [rsp + 0xe0]
test rbx, rbx
je 0x180020f23
mov eax, edi
lock xadd dword [rbx + 8], eax
dec eax
jne 0x180020f23
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
dec edi
jne 0x180020f23
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
jmp 0x180020f23
mov eax, 1
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.180085420
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret