Function at 0x1400b5108
Capabilities:
Create thread
Resume 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
xor r11d, r11d
mov eax, 0x400000
mov r15, rcx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x80], rax
mov ax, word [rdx]
lea ebp, [r11 + 9]
mov ebx, r11d
mov qword [rsp + 0x38], rdx
mov r12d, r11d
mov r8d, r11d
mov dword [rsp + 0x30], r11d
mov r14d, r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x158], ebx
mov dword [rsp + 0x50], r11d
mov edi, r11d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x64], r11d
mov r9d, r11d
mov dword [rsp + 0x34], r11d
movzx r13d, r11w
lea esi, [rbp + 0x21]
lea r10d, [r11 + 1]
cmp ax, r11w
je 0x1400b521d
lea edi, [rbp + 0x17]
cmp bp, ax
ja 0x1400b51a6
cmp ax, 0xd
jbe 0x1400b520e
cmp di, ax
je 0x1400b520e
mov ecx, 0x24
cmp cx, ax
jne 0x1400b51ba
mov r12d, r10d
jmp 0x1400b51fc
cmp si, ax
jne 0x1400b51c8
movsx r14d, byte [rdx]
mov ebx, r11d
jmp 0x1400b51fc
mov ecx, 0x2b
cmp cx, ax
jne 0x1400b51da
movsx ebx, byte [rdx]
mov r14d, r11d
jmp 0x1400b51fc
mov ecx, 0x26
cmp cx, ax
jne 0x1400b51eb
mov dword [rsp + 0x50], r10d
jmp 0x1400b51fc
mov ecx, 0x23
cmp cx, ax
jne 0x1400b51fc
movsx eax, byte [rdx]
mov dword [rsp + 0x64], eax
add rdx, 2
mov qword [rsp + 0x38], rdx
mov ax, word [rdx]
cmp ax, r11w
jne 0x1400b519b
mov dword [rsp + 0x158], ebx
mov dword [rsp + 0x48], r14d
mov edi, r8d
lea rax, str.__LastTID
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x88], r11
mov qword [rsp + 0x90], rax
call fcn.1400591c8
mov rbp, qword [rsp + 0x38]
mov ecx, 0x2d
cmp cx, word [rbp]
movzx eax, sil
mov dword [rsp + 0x60], 0x80000000
cmove eax, ecx
mov qword [rsp + 0x148], rbp
movsx esi, al
movzx eax, word [rbp]
cmp esi, eax
jne 0x1400b55b4
lea r15d, [rcx - 0xd]
mov ebx, 5
lea rdx, [rsp + 0x38]
lea rcx, [0x1401190b0]
mov r8d, ebx
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b52b2
lea r10d, [rbx - 4]
mov r8d, r10d
mov dword [rsp + 0x30], r10d
jmp 0x1400b558b
lea rdx, [rsp + 0x38]
lea rcx, str._waitx
mov r8d, 6
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b52df
lea r8d, [r11 + 2]
mov dword [rsp + 0x30], r8d
jmp 0x1400b5585
lea rdx, [rsp + 0x38]
lea rcx, str._here
mov r8d, ebx
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b5308
bts edi, 8
mov dword [rsp + 0x40], edi
jmp 0x1400b5580
lea rdx, [rsp + 0x38]
lea rcx, str._delay
mov r8d, 6
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b5335
mov eax, 0x200
or r13w, ax
jmp 0x1400b5580
lea rdx, [rsp + 0x38]
lea rcx, str._waitp
mov r8d, 6
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b536d
mov r8d, dword [rsp + 0x30]
mov r9d, 0x400
lea r10d, [r11 + 1]
mov dword [rsp + 0x34], r9d
jmp 0x1400b5590
lea rdx, [rsp + 0x38]
lea rcx, str._idle
mov r8d, ebx
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b5396
mov dword [rsp + 0x60], 0xfffffff1
jmp 0x1400b5580
lea rdx, [rsp + 0x38]
lea rcx, [0x140122754]
mov r8d, 4
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b53c6
mov r8d, dword [rsp + 0x30]
lea r10d, [r11 + 1]
mov r12d, r10d
jmp 0x1400b558b
lea rdx, [rsp + 0x38]
lea rcx, [0x14012274c]
mov r8d, ebx
call fcn.140064170
xor r11d, r11d
cmp al, r11b
je 0x1400b5403
mov r8d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov ebx, r11d
mov dword [rsp + 0x158], ebx
lea r14d, [r11 + 0x2a]
lea r10d, [r11 + 1]
jmp 0x1400b5597
mov rbx, qword [rsp + 0x38]
lea rcx, str.tid:
mov r8d, 4
lea rdx, [rbx + 2]
call fcn.14005a82c
cmp al, r11b
je 0x1400b54c1
mov rdi, rbx
add rbx, 0xa
movzx eax, word [rbx]
mov qword [rsp + 0x38], rbx
mov rdx, rbx
cmp ax, r11w
je 0x1400b5467
mov ecx, 9
cmp cx, ax
ja 0x1400b544f
cmp ax, 0xd
jbe 0x1400b5467
cmp r15w, ax
je 0x1400b5467
add rbx, 2
mov qword [rsp + 0x38], rbx
mov ax, word [rbx]
cmp ax, r11w
jne 0x1400b5444
mov r8, rbx
lea rcx, [rsp + 0x58]
sub r8, rdx
sar r8, 1
call fcn.140061900
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov r10d, 1
cmp rdi, rbx
jae 0x1400b54a6
sub rbx, rdi
movzx eax, r15w
sub rbx, r10
shr rbx, 1
lea rcx, [r10 + rbx]
rep stosw word [rdi], ax
lea rcx, [rsp + 0x38]
call fcn.1400591c8
mov edi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
xor r11d, r11d
jmp 0x1400b558b
lea rdx, [rbx + 2]
lea rcx, str.htid:
mov r8d, 5
call fcn.14005a82c
cmp al, r11b
je 0x1400b5541
mov rdi, rbx
add rbx, 0xc
movzx eax, word [rbx]
mov qword [rsp + 0x38], rbx
mov rdx, rbx
cmp ax, r11w
je 0x1400b551c
mov ecx, 9
cmp cx, ax
ja 0x1400b5504
cmp ax, 0xd
jbe 0x1400b551c
cmp r15w, ax
je 0x1400b551c
add rbx, 2
mov qword [rsp + 0x38], rbx
mov ax, word [rbx]
cmp ax, r11w
jne 0x1400b54f9
mov r8, rbx
lea rcx, [rsp + 0x70]
sub r8, rdx
sar r8, 1
call fcn.140061900
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
jmp 0x1400b5487
movzx eax, word [rbx]
cmp ax, r11w
je 0x1400b5572
mov ecx, 9
cmp cx, ax
ja 0x1400b555a
cmp ax, 0xd
jbe 0x1400b5572
cmp r15w, ax
je 0x1400b5572
add rbx, 2
mov qword [rsp + 0x38], rbx
mov ax, word [rbx]
cmp ax, r11w
jne 0x1400b554f
lea rcx, [rsp + 0x38]
call fcn.1400591c8
mov edi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov r10d, 1
mov r9d, dword [rsp + 0x34]
mov ebx, dword [rsp + 0x158]
mov rax, qword [rsp + 0x38]
movzx ecx, word [rax]
cmp esi, ecx
je 0x1400b5280
mov r15, qword [rsp + 0x140]
mov dword [rsp + 0x48], r14d
cmp ebx, r11d
jne 0x1400b55be
cmp r8d, r11d
je 0x1400b55c6
mov r9d, r11d
mov dword [rsp + 0x34], r11d
movsx r13d, r13w
lea rcx, [rsp + 0x38]
or r13d, r9d
or r13d, edi
or r13d, dword [rsp + 0x50]
call fcn.1400591c8
mov rcx, qword [rsp + 0x38]
cmp word [rcx], r11w
jne 0x1400b560a
lea rcx, [rsp + 0x70]
call fcn.1400591f8
lea rcx, [rsp + 0x58]
call fcn.1400591f8
mov rax, 0xffffffff80070057
jmp 0x1400b5b83
mov qword [rsp + 0x68], r11
cmp r12d, r11d
je 0x1400b563c
lea r8, [rsp + 0x68]
xor r9d, r9d
mov rdx, rbp
mov rcx, r15
mov byte [rsp + 0x20], r10b
call fcn.14007714c
mov rdx, qword [rsp + 0x68]
xor r11d, r11d
mov qword [rsp + 0x148], rdx
lea rcx, [rsp + 0x148]
call fcn.1400591c8
mov rbp, qword [rsp + 0x148]
mov di, word [rbp]
mov qword [rsp + 0x38], rbp
cmp di, r11w
jne 0x1400b566c
mov rdi, 0xffffffff80070057
jmp 0x1400b5b62
movzx ebx, di
cmp esi, ebx
jne 0x1400b5731
movzx eax, word [rbp + 2]
cmp esi, eax
jne 0x1400b56dc
lea rdx, [rbp + 4]
lea rcx, [0x140122738]
mov r8d, 3
call fcn.14005a82c
cmp al, r11b
je 0x1400b56dc
lea rax, [rbp + 0xa]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
call fcn.140068698
mov rax, qword [rsp + 0x80]
add rax, 0x1fff
and rax, 0xffffffffffffe000
xor r11d, r11d
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x80], rax
cmp esi, ebx
jne 0x1400b5731
cmp di, r11w
je 0x1400b5714
mov eax, 0x20
lea ecx, [rax - 0x17]
cmp cx, di
ja 0x1400b56f9
cmp di, 0xd
jbe 0x1400b570c
cmp ax, di
je 0x1400b570c
add rbp, 2
mov di, word [rbp]
cmp di, r11w
jne 0x1400b56ee
mov qword [rsp + 0x148], rbp
lea rcx, [rsp + 0x148]
call fcn.1400591c8
mov rbp, qword [rsp + 0x148]
movzx edi, word [rbp]
cmp esi, edi
je 0x1400b56e0
cmp r14d, r11d
je 0x1400b573c
mov r14, qword [r15 + 0x40]
jmp 0x1400b573f
mov r14, r11
mov ecx, 8
call fcn.1400fb138
mov rsi, rax
test rax, rax
je 0x1400b578c
mov rdi, qword [r15 + 0x78]
and qword [rax], 0
test rdi, rdi
je 0x1400b578e
lea rcx, [0x140136118]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [rdi]
test r11, r11
je 0x1400b577d
inc dword [r11 + 8]
mov rax, qword [rdi]
mov qword [rsi], rax
lea rcx, [0x140136118]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400b578e
xor esi, esi
mov r12, qword [r15 + 0x80]
mov ecx, pe_nt_image_headers64
mov qword [rsp + 0xa0], rsi
call fcn.1400fb138
mov rbx, rax
test rax, rax
je 0x1400b57cb
mov rdx, r15
mov rcx, rax
call fcn.1400179e8
mov rdx, r15
mov rcx, rbx
call fcn.1400183c8
mov qword [rbx + 0x40], r14
jmp 0x1400b57cd
xor ebx, ebx
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0xa8], rbx
lea rdi, [0x1401350d0]
jne 0x1400b57f3
mov byte [rbx + 0xd9], 1
test r14, r14
jne 0x1400b57f3
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x80], r12
mov rdx, qword [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call fcn.140070d44
mov r12d, dword [rsp + 0x40]
mov qword [rbx + 0x78], rsi
test r12d, r12d
je 0x1400b581d
mov rdi, r15
jmp 0x1400b582d
test r14, r14
je 0x1400b582d
mov rdi, qword [r14 + 0x270]
mov qword [rbx + 0x38], rdi
lea rcx, [0x140136118]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r12d, r12d
mov r12d, dword [rsp + 0x48]
jne 0x1400b587f
test r12d, r12d
je 0x1400b587f
cmp dword [rsp + 0x30], 0
je 0x1400b587f
mov rax, r15
mov edx, 0x7fffd
test rax, rax
je 0x1400b587f
mov cl, byte [rax + 0xd9]
test cl, 1
je 0x1400b586d
test cl, 0x42
jne 0x1400b5878
sub edx, 1
mov rax, qword [rax + 0x38]
js 0x1400b587f
jmp 0x1400b5858
mov qword [rbx + 0x38], rax
mov rdi, rax
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.14005c20c
mov edi, dword [rsp + 0x50]
test edi, edi
je 0x1400b58a2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140078e94
lea rcx, [0x140136118]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [r15 + 0xda]
mov byte [rbx + 0xda], cl
mov al, byte [r15 + 0xd]
mov byte [rbx + 0xd], al
test edi, edi
je 0x1400b58cb
mov byte [rbx + 0xd], 1
lea rcx, [rsp + 0x78]
mov rdx, rbp
call fcn.14006d5dc
lea rcx, [rsp + 0x48]
mov edx, 0x88
call fcn.140061420
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.14005915c
mov rax, qword [rsp + 0x78]
mov qword [rdi], r15
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x150]
xor edx, edx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], 4
mov qword [rdi + 0x20], rdx
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rdx
mov qword [rdi + 0x38], r14
movsxd rax, r12d
movsxd rcx, r13d
mov r12b, dl
mov qword [rdi + 0x40], rax
movsxd rax, dword [rsp + 0x158]
mov r13d, edx
mov qword [rdi + 0x48], rax
movsxd rax, dword [rsp + 0x50]
lea r8, [0x1400b4d50]
or rcx, rax
movsxd rax, dword [rsp + 0x64]
mov r9, rdi
mov qword [rdi + 0x50], rcx
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x70], r14
mov qword [rdi + 0x78], r14
mov dword [rsp + 0x44], edx
mov rdx, qword [rsp + 0x98]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0x10004
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400b5a57
cmp dword [rsp + 0x40], r13d
je 0x1400b59b1
cmp dword [rsp + 0x30], r13d
jne 0x1400b59c3
test r14, r14
je 0x1400b59c3
mov rcx, r14
call fcn.140059820
xor r14d, r14d
jmp 0x1400b59c9
xor r14d, r14d
mov rax, r14
mov qword [rdi + 0x30], rax
mov eax, dword [rsp + 0x44]
lea rcx, [0x140136118]
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 1
cmp dword [rsp + 0x158], r14d
jne 0x1400b5a04
add dword [0x1401357a0], edi
cmp dword [rsp + 0x34], r14d
je 0x1400b5a04
add dword [0x1401357a4], edi
movzx eax, byte [0x140134cb1]
mov ecx, eax
cmp al, r14b
cmove ecx, edi
mov byte [0x140134cb1], cl
lea rcx, [0x140136118]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rsp + 0x60]
cmp eax, 0x80000000
je 0x1400b5a3c
mov edx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x48], r14
mov rsi, r14
mov rbx, r14
jmp 0x1400b5a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
lea edi, [r14 + 1]
mov r13d, eax
cmp eax, r14d
cmove r13d, edi
cmp qword [rsp + 0x58], r14
je 0x1400b5a89
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x44]
mov rcx, r15
call fcn.140064948
mov edx, dword [rsp + 0x44]
lea r8, str.__LastTID
mov rcx, r15
call fcn.140064948
mov rax, qword [rsp + 0x88]
cmp rax, r14
je 0x1400b5ac8
cmp word [rax], r14w
je 0x1400b5ac8
mov r8, rax
mov rdx, rbp
mov rcx, r15
call fcn.14003eed4
movzx r12d, r12b
cmp rax, r14
cmovne r12d, edi
cmp rbp, r14
je 0x1400b5adb
cmp r12b, r14b
jne 0x1400b5adb
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x30], r14d
je 0x1400b5b16
cmp rbp, r14
je 0x1400b5b16
mov r8d, dword [rsp + 0x44]
cmp r8d, r14d
je 0x1400b5b16
lea rdx, str.__ncd__u
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0xb0]
mov rcx, r15
call fcn.14003d948
lea rcx, [rsp + 0x48]
movsxd rdi, r13d
call fcn.1400591f8
lea rcx, [rsp + 0x78]
call fcn.1400591f8
cmp rbx, r14
je 0x1400b5b4d
xor edx, edx
mov rcx, rbx
call fcn.14004d5e0
lea rcx, [rbx + 0x70]
call fcn.1400591f8
mov rcx, rbx
call fcn.1400faf4c
cmp rsi, r14
je 0x1400b5b62
mov rcx, rsi
call fcn.14002841c
mov rcx, rsi
call fcn.1400faf4c
lea rcx, [rsp + 0x68]
call fcn.1400591f8
lea rcx, [rsp + 0x70]
call fcn.1400591f8
lea rcx, [rsp + 0x58]
call fcn.1400591f8
mov rax, rdi
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret