Function at 0x1400982d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf8
mov ax, word [rdx]
xor r11d, r11d
mov rbx, rcx
mov qword [rsp + 0x30], rdx
mov r12d, r11d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x158], r11d
mov r15d, r11d
mov dword [rsp + 0x38], r11d
mov r14d, r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x64], r11d
movzx r13d, r11w
lea edi, [r11 + 1]
lea r8d, [r11 + 9]
lea r9d, [r11 + 0x2a]
cmp ax, r11w
je 0x1400983d4
lea r14d, [r11 + 0x20]
cmp r8w, ax
ja 0x14009834f
cmp ax, 0xd
jbe 0x1400983cc
cmp r14w, ax
je 0x1400983cc
mov ecx, 0x24
cmp cx, ax
jne 0x140098364
mov r12d, edi
jmp 0x1400983b6
cmp r9w, ax
jne 0x14009837b
movsx ecx, byte [rdx]
mov dword [rsp + 0x158], r11d
mov dword [rsp + 0x3c], ecx
jmp 0x1400983b6
mov ecx, 0x2b
cmp cx, ax
jne 0x140098396
movsx eax, byte [rdx]
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x158], eax
jmp 0x1400983b6
mov ecx, 0x26
cmp cx, ax
jne 0x1400983a5
mov r15d, edi
jmp 0x1400983b6
mov ecx, 0x23
cmp cx, ax
jne 0x1400983b6
movsx eax, byte [rdx]
mov dword [rsp + 0x64], eax
add rdx, 2
mov qword [rsp + 0x30], rdx
mov ax, word [rdx]
cmp ax, r11w
jne 0x140098343
mov dword [rsp + 0x38], r15d
mov r14d, r11d
lea r8, str.__LastTID
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x70], r11
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0xa0], r8
call fcn.14004ea3c
mov rsi, qword [rsp + 0x30]
mov ecx, 0x2d
cmp cx, word [rsi]
movzx eax, r9b
mov dword [rsp + 0x60], 0x80000000
cmove eax, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x148], rsi
movsx ebp, al
movzx eax, word [rsi]
cmp ebp, eax
jne 0x140098701
lea r15d, [rcx - 0xd]
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ec8b0]
mov r8d, 5
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x140098465
mov dword [rsp + 0x40], edi
jmp 0x1400986df
lea rdx, [rsp + 0x30]
lea rcx, str._waitx
mov r8d, 6
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x140098491
mov dword [rsp + 0x40], 2
jmp 0x1400986df
lea rdx, [rsp + 0x30]
lea rcx, str._here
mov r8d, 5
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x1400984ba
bts r14d, 8
jmp 0x1400986df
lea rdx, [rsp + 0x30]
lea rcx, str._delay
mov r8d, 6
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x1400984e7
mov eax, 0x200
or r13w, ax
jmp 0x1400986df
lea rdx, [rsp + 0x30]
lea rcx, str._idle
mov r8d, 5
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x140098513
mov dword [rsp + 0x60], 0xfffffff1
jmp 0x1400986df
lea rdx, [rsp + 0x30]
lea rcx, str._exp
mov r8d, 4
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x14009853a
mov r12d, edi
jmp 0x1400986df
lea rdx, [rsp + 0x30]
lea rcx, str._link
mov r8d, 5
call fcn.140058774
xor r11d, r11d
cmp al, r11b
je 0x14009856e
mov dword [rsp + 0x3c], 0x2a
mov dword [rsp + 0x158], r11d
jmp 0x1400986df
mov rbx, qword [rsp + 0x30]
lea rcx, str._tid:
mov r8d, 5
mov rdx, rbx
call fcn.14004fdfc
cmp al, r11b
je 0x1400985f5
mov rdi, rbx
add rbx, 0xa
movzx eax, word [rbx]
mov qword [rsp + 0x30], rbx
mov rdx, rbx
cmp ax, r11w
je 0x1400985cd
mov ecx, 9
cmp cx, ax
ja 0x1400985b5
cmp ax, 0xd
jbe 0x1400985cd
cmp r15w, ax
je 0x1400985cd
add rbx, 2
mov qword [rsp + 0x30], rbx
mov ax, word [rbx]
cmp ax, r11w
jne 0x1400985aa
mov r8, rbx
lea rcx, [rsp + 0x80]
sub r8, rdx
sar r8, 1
call fcn.140056234
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rax
jmp 0x140098673
lea rcx, str._htid:
mov r8d, 6
mov rdx, rbx
call fcn.14004fdfc
cmp al, r11b
je 0x1400986a4
mov rdi, rbx
add rbx, 0xc
movzx eax, word [rbx]
mov qword [rsp + 0x30], rbx
mov rdx, rbx
cmp ax, r11w
je 0x140098653
mov ecx, 9
cmp cx, ax
ja 0x14009863b
cmp ax, 0xd
jbe 0x140098653
cmp r15w, ax
je 0x140098653
add rbx, 2
mov qword [rsp + 0x30], rbx
mov ax, word [rbx]
cmp ax, r11w
jne 0x140098630
mov r8, rbx
lea rcx, [rsp + 0x70]
sub r8, rdx
sar r8, 1
call fcn.140056234
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
cmp rdi, rbx
jae 0x140098691
sub rbx, rdi
mov eax, 1
sub rbx, rax
shr rbx, 1
lea rcx, [rax + rbx]
movzx eax, r15w
rep stosw word [rdi], ax
lea rcx, [rsp + 0x30]
call fcn.14004ea3c
xor r11d, r11d
lea edi, [r11 + 1]
jmp 0x1400986df
movzx eax, word [rbx]
cmp ax, r11w
je 0x1400986d5
mov ecx, 9
cmp cx, ax
ja 0x1400986bd
cmp ax, 0xd
jbe 0x1400986d5
cmp r15w, ax
je 0x1400986d5
add rbx, 2
mov qword [rsp + 0x30], rbx
mov ax, word [rbx]
cmp ax, r11w
jne 0x1400986b2
lea rcx, [rsp + 0x30]
call fcn.14004ea3c
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax]
cmp ebp, ecx
je 0x14009843d
mov rbx, qword [rsp + 0x140]
mov r15d, dword [rsp + 0x38]
mov dword [rsp + 0x48], r14d
movsx eax, r13w
lea rcx, [rsp + 0x30]
or eax, r14d
or eax, r15d
mov dword [rsp + 0x90], eax
call fcn.14004ea3c
mov rcx, qword [rsp + 0x30]
cmp word [rcx], r11w
jne 0x14009874a
lea rcx, [rsp + 0x70]
call fcn.14004ea6c
lea rcx, [rsp + 0x80]
call fcn.14004ea6c
mov rax, 0xffffffff80070057
jmp 0x140098ceb
mov qword [rsp + 0x78], r11
cmp r12d, r11d
je 0x1400987a0
lea r8, [rsp + 0x78]
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
mov byte [rsp + 0x20], dil
call fcn.140068750
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x148], rdx
call fcn.14004ea3c
mov rsi, qword [rsp + 0x148]
mov qword [rsp + 0x58], rsi
mov rdi, rsi
mov qword [rsp + 0x30], rsi
xor r11d, r11d
jmp 0x1400987b4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
call fcn.14004ea3c
mov rdi, qword [rsp + 0x30]
cmp word [rdi], r11w
jne 0x1400987c6
mov rdi, 0xffffffff80070057
jmp 0x140098cc7
movzx eax, word [rdi]
mov r15d, 0x400000
mov qword [rsp + 0x68], r15
cmp ebp, eax
jne 0x14009882e
movzx eax, word [rdi + 2]
cmp ebp, eax
jne 0x14009882e
lea rdx, [rdi + 4]
lea rcx, [0x1400f4f90]
mov r8d, 3
call fcn.14004fdfc
cmp al, r11b
je 0x14009882e
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
add rdi, 0xa
mov qword [rsp + 0x30], rdi
call fcn.14005ba04
mov r15, qword [rsp + 0x68]
add r15, 0x1fff
and r15, 0xffffffffffffe000
xor r11d, r11d
mov qword [rsp + 0x68], r15
movzx eax, word [rsi]
cmp ebp, eax
jne 0x14009888b
mov edi, 0x20
cmp ax, r11w
je 0x14009886a
mov ecx, 9
cmp cx, ax
ja 0x140098850
cmp ax, 0xd
jbe 0x14009886a
cmp di, ax
je 0x14009886a
add rsi, 2
mov qword [rsp + 0x148], rsi
mov ax, word [rsi]
cmp ax, r11w
jne 0x140098845
lea rcx, [rsp + 0x148]
call fcn.14004ea3c
mov rsi, qword [rsp + 0x148]
movzx eax, word [rsi]
cmp ebp, eax
je 0x14009883a
mov qword [rsp + 0x58], rsi
cmp dword [rsp + 0x3c], r11d
je 0x140098898
mov r12, qword [rbx + 0x40]
jmp 0x14009889b
mov r12, r11
cmp r14d, r11d
jne 0x1400988aa
cmp r12, r11
je 0x1400988aa
mov rbp, r12
jmp 0x1400988b9
mov rbp, r11
cmp r14d, r11d
je 0x1400988b9
cmp dword [rsp + 0x40], r11d
jne 0x1400988d0
cmp r12, r11
je 0x1400988d0
cmp rbp, r11
je 0x1400988d0
mov rcx, r12
call fcn.14004ef64
mov r13, rax
jmp 0x1400988d3
mov r13, r11
mov ecx, 8
call fcn.1400ccba8
xor edx, edx
mov rsi, rax
cmp rax, rdx
je 0x14009890e
mov rax, qword [rbx + 0x78]
mov qword [rsi], rdx
cmp rax, rdx
je 0x140098904
mov rcx, qword [rax]
cmp rcx, rdx
je 0x140098904
inc dword [rcx + 8]
mov rax, qword [rax]
mov qword [rsi], rax
mov qword [rsp + 0x88], rsi
jmp 0x140098919
mov rsi, rdx
mov qword [rsp + 0x88], rdx
cmp dword [rsp + 0x48], edx
mov r14, qword [rbx + 0x80]
mov rdi, rbp
mov ecx, 0xf0
cmovne rdi, rdx
call fcn.1400ccba8
mov rbx, rax
test rax, rax
je 0x140098963
mov rdx, qword [rsp + 0x140]
mov rcx, rax
call fcn.140015138
mov rdx, qword [rsp + 0x140]
mov rcx, rbx
call fcn.1400158b0
mov qword [rbx + 0x40], rdi
jmp 0x140098965
xor ebx, ebx
cmp dword [rsp + 0x48], 0
mov qword [rsp + 0x98], rbx
lea rdi, [0x140106ec0]
jne 0x14009898b
mov byte [rbx + 0xd9], 1
test rbp, rbp
jne 0x14009898b
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x80], r14
mov rdx, qword [rsp + 0x78]
xor r8d, r8d
mov rcx, rbx
call fcn.1400636ec
cmp dword [rsp + 0x48], 0
mov r14, qword [rsp + 0x140]
mov qword [rbx + 0x78], rsi
je 0x1400989ba
mov rdi, r14
jmp 0x1400989ca
test rbp, rbp
je 0x1400989ca
mov rdi, qword [rbp + 0x210]
mov qword [rbx + 0x38], rdi
lea rcx, [0x140107de8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.140051690
cmp dword [rsp + 0x38], 0
je 0x1400989f9
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140069b60
cmp dword [rsp + 0x158], 0
jne 0x140098a28
inc dword [0x1401074f4]
mov rdi, qword [rsp + 0x148]
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x98]
jmp 0x140098a2d
mov rdi, qword [rsp + 0x58]
movzx eax, byte [0x140106bb5]
mov ecx, eax
test al, al
mov eax, 1
cmove ecx, eax
mov byte [0x140106bb5], cl
lea rcx, [0x140107de8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsp + 0x38], 0
mov dl, byte [r14 + 0xda]
mov byte [rbx + 0xda], dl
mov al, byte [r14 + 0xd]
mov byte [rbx + 0xd], al
je 0x140098a76
mov eax, 1
mov byte [rbx + 0xd], al
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.14006016c
lea rcx, [rsp + 0x58]
mov edx, 0x88
call fcn.140055ddc
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.14004ea20
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rsp + 0x90]
mov qword [rdi], r14
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x150]
xor edx, edx
lea r8, [0x140098048]
mov r9, rdi
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], 4
mov qword [rdi + 0x20], rdx
mov qword [rdi + 0x28], rax
movsxd rax, dword [rsp + 0x3c]
mov qword [rdi + 0x30], r13
mov qword [rdi + 0x38], r12
mov qword [rdi + 0x40], rax
movsxd rax, dword [rsp + 0x158]
mov qword [rdi + 0x48], rax
movsxd rax, dword [rsp + 0x38]
mov r12b, dl
or rcx, rax
movsxd rax, dword [rsp + 0x64]
mov qword [rdi + 0x50], rcx
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x70], rbp
lea rax, [rsp + 0x50]
mov qword [rdi + 0x78], rbp
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x28], rax
movsxd rdx, r15d
xor ecx, ecx
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r15d, r15d
mov rdi, rax
cmp rax, r15
jne 0x140098b9b
cmp dword [rsp + 0x158], r15d
jne 0x140098b86
lea rcx, [0x140107de8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [0x1401074f4]
lea rcx, [0x140107de8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, r15d
mov eax, 1
cmove ebp, eax
jmp 0x140098b9e
mov ebp, r15d
cmp rdi, r15
je 0x140098bc9
mov eax, dword [rsp + 0x60]
cmp eax, 0x80000000
je 0x140098bb9
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov rsi, r15
mov rbx, r15
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.140058f30
mov rax, qword [rsp + 0xa8]
cmp rax, r15
je 0x140098c0e
cmp word [rax], r15w
je 0x140098c0e
mov r8, rax
mov rdx, rdi
mov rcx, r14
call fcn.1400369d4
movzx r12d, r12b
cmp eax, r15d
mov eax, 1
cmovne r12d, eax
cmp dword [rsp + 0x40], r15d
je 0x140098c49
cmp rdi, r15
je 0x140098c49
mov r8d, dword [rsp + 0x50]
cmp r8d, r15d
je 0x140098c49
lea rdx, [0x1400f4f78]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0xb0]
mov rcx, r14
call fcn.140035780
cmp r13, r15
je 0x140098c6b
cmp rdi, r15
jne 0x140098c70
mov r9, qword [r14 + 0x40]
mov edx, 0x451
mov r8d, 1
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, r15
je 0x140098c7e
cmp r12b, r15b
jne 0x140098c7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
movsxd rdi, ebp
call fcn.14004ea6c
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
cmp rbx, r15
je 0x140098cb5
xor edx, edx
mov rcx, rbx
call fcn.140042014
lea rcx, [rbx + 0x70]
call fcn.14004ea6c
mov rcx, rbx
call fcn.1400cc9bc
cmp rsi, r15
je 0x140098cc7
mov edx, 1
mov rcx, rsi
call fcn.14006b77c
lea rcx, [rsp + 0x78]
call fcn.14004ea6c
lea rcx, [rsp + 0x70]
call fcn.14004ea6c
lea rcx, [rsp + 0x80]
call fcn.14004ea6c
mov rax, rdi
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret