Function at 0x140008750
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x1400087a5
mov r9d, 0x10
lea r8, str.Critical_error
lea rdx, str.Unable_to_create_window
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x1400089a3
lea rax, [rcx + 0x100]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140009470]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14000885b
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
lea rdx, str.Unable_to_create_worker_thread___d_
mov r9d, eax
lea rcx, [rbp + 0x2f]
mov r8d, edi
call fcn.14000edc0
cmp qword [rbp + 0x47], 0x10
lea rdx, [rbp + 0x2f]
mov rcx, rbx
cmovae rdx, qword [rbp + 0x2f]
call fcn.14000f340
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x1400089a1
mov rcx, qword [rbp + 0x2f]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000899c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089ca
jmp 0x14000899c
xor r9d, r9d
lea rcx, [rbp - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000889b
lea rcx, [rbp - 1]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 1]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140008871
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rbx, qword [0x14005eb48]
test eax, eax
je 0x140008933
mov r9d, dword [rbp - 9]
lea rdx, str.Worker_thread_exited_with_code__d
mov r8d, 1
lea rcx, [rbp + 0x2f]
call fcn.14000edc0
cmp qword [rbp + 0x47], 0x10
lea rdx, [rbp + 0x2f]
mov rcx, rbx
cmovae rdx, qword [rbp + 0x2f]
call fcn.14000f340
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x14000892e
mov rcx, qword [rbp + 0x2f]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008929
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089d0
call fcn.14001c70c
mov edi, dword [rbp - 9]
jmp 0x1400089a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
lea rdx, str.Failed_to_get_worker_thread_exit_code___d_
mov r9d, eax
lea rcx, [rbp + 0x2f]
mov r8d, edi
call fcn.14000edc0
cmp qword [rbp + 0x47], 0x10
lea rdx, [rbp + 0x2f]
mov rcx, rbx
cmovae rdx, qword [rbp + 0x2f]
call fcn.14000f340
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x1400089a1
mov rcx, qword [rbp + 0x2f]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000899c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089c4
call fcn.14001c70c
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3