Function at 0x140081310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14014a040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
xorps xmm0, xmm0
lea rdx, str.grcWindow
xor esi, esi
lea rcx, [rbp + 0x27]
mov r8d, 9
mov qword [rbp + 0x37], rsi
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x3f], rsi
call fcn.140007e10
lea rdx, [rbp + 0x27]
call fcn.140080fa0
test al, al
jne 0x14008137b
mov eax, 1
jmp 0x1400817ba
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rbx
mov r8d, 9
mov qword [rbp + 0x37], rsi
lea rdx, str.grcWindow
mov qword [rbp + 0x3f], rsi
lea rcx, [rbp + 0x27]
movups xmmword [rbp + 0x27], xmm0
call fcn.140007e10
cmp qword [rbp + 0x3f], 0xf
lea rdx, [rbp + 0x27]
mov rbx, qword [0x14014b590]
cmova rdx, qword [rbp + 0x27]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rbx
mov qword [rbx + 0x98], rax
call fcn.140075520
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, 0xf
jbe 0x140081415
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081410
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081410
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ec18c
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], sil
test bl, bl
jne 0x140081433
mov eax, 2
jmp 0x1400817b2
mov rbx, qword [0x14014b520]
lea rdx, [0x14010d220]
movss xmm3, dword [0x140133408]
mov qword [rsp + 0xb8], rdi
mov rdi, qword [0x14014b598]
mov rcx, qword [rbx + 0x38]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.14004c360
mov rcx, qword [rbx + 0x38]
call fcn.14004c7d0
call fcn.140018bb0
mov ecx, 8
call fcn.1400ebf10
lea rcx, [rbp - 0x11]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14000ada0]
xor ecx, ecx
mov dword [rsp + 0x20], esi
xor edx, edx
mov qword [rax], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140081820
cmp dword [rbp - 0x11], esi
je 0x140081814
movaps xmm0, xmmword [rbp - 0x19]
lea rcx, [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140081814
xorps xmm0, xmm0
mov ecx, 8
movdqa xmmword [rbp - 0x19], xmm0
call fcn.1400ebf10
lea rcx, [rbp - 0x11]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14000add0]
xor ecx, ecx
mov dword [rsp + 0x20], esi
xor edx, edx
mov qword [rax], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140081805
cmp dword [rbp - 0x11], esi
je 0x1400817f9
movaps xmm0, xmmword [rbp - 0x19]
lea rcx, [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400817f9
xorps xmm0, xmm0
mov ecx, 1
movdqa xmmword [rbp - 0x19], xmm0
call fcn.1400ebf10
lea rcx, [rbp - 0x11]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140081830]
xor ecx, ecx
mov dword [rsp + 0x20], esi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400817ea
cmp dword [rbp - 0x11], esi
je 0x1400817de
movaps xmm0, xmmword [rbp - 0x19]
lea rcx, [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400817de
cmp byte [0x14014a220], sil
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
je 0x1400816f9
nop dword [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 9]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140081612
nop
lea rcx, [rbp - 9]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 9]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 9]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1400815e0
mov rax, qword [0x14014b520]
test rax, rax
je 0x140081627
mov rcx, qword [rax + 0x98]
jmp 0x14008162a
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x140081635
call fcn.140053280
call fcn.140054380
call fcn.140030530
call fcn.140024f30
cmp byte [0x14014a268], sil
je 0x140081659
mov rcx, qword [0x14014b598]
call fcn.140025d50
cmp byte [0x14014a221], sil
je 0x14008166e
mov rcx, qword [0x14014b598]
call fcn.140012e70
call fcn.140032430
mov rcx, qword [0x14014b540]
lea r8, [0x14014b558]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x27], xmm0
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [0x14014b540]
lea r8, [rbp + 0x27]
mov rdx, qword [0x14014b558]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x14014b520]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140052650
mov rcx, qword [0x14014b550]
xor r8d, r8d
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp byte [0x14014a220], sil
jne 0x1400815c0
call fcn.140075850
mov rcx, qword [0x14014b568]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14014b598]
mov byte [0x14014a220], sil
test rbx, rbx
je 0x1400817a8
mov r8, qword [rbx + 0xf8]
test r8, r8
je 0x14008179b
mov rcx, qword [rbx + 0x108]
movabs rax, 0x8421084210842109
sub rcx, r8
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0xf8
cmp rdx, 0x1000
jb 0x14008177e
mov rcx, qword [r8 - 8]
add rdx, 0x27
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x1400817d7
mov r8, rcx
mov rcx, r8
call fcn.1400ec18c
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0x108], rsi
mov edx, 0x190
mov rcx, rbx
call fcn.1400ec18c
mov rdi, qword [rsp + 0xb8]
xor eax, eax
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400ebef0
mov rsi, qword [rsp + 0xc0]
add rsp, 0xa0
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x11], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x11], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x11], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3