Function at 0x14005cc40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
movzx eax, byte [0x140066b28]
lea rdx, [rbp - 0x29]
xorps xmm0, xmm0
mov qword [rbp - 0x19], 9
movups xmmword [rbp - 0x29], xmm0
mov esi, 0xf
mov byte [rbp - 0x21], al
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rsi
mov byte [rbp - 0x20], 0
call fcn.14005c7e0
test al, al
jne 0x14005ccb7
mov eax, 1
jmp 0x14005cdf3
movzx eax, byte [0x140066b28]
lea rdx, [rbp + 0x27]
xorps xmm0, xmm0
mov qword [rsp + 0xc0], rbx
mov rbx, qword [0x140070978]
xor ecx, ecx
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], 9
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp + 0x27], xmm0
mov qword [rbp + 0x3f], rsi
mov byte [rbp + 0x2f], al
mov byte [rbp + 0x30], 0
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rbx
mov qword [rbx + 0x98], rax
call fcn.14005bc30
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, rsi
jbe 0x14005cd4f
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cd4a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005cd4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005d0ec
test bl, bl
jne 0x14005cd5d
mov eax, 2
jmp 0x14005cdeb
mov rbx, qword [0x140070970]
mov ecx, 8
mov qword [rsp + 0xc8], rdi
call fcn.14005d0b0
lea rcx, [rbp - 0x21]
xor edi, edi
mov qword [rsp + 0x28], rcx
lea r8, [0x1400028c0]
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov r9, rax
mov qword [rax], rbx
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14005d071
cmp dword [rbp - 0x21], edi
je 0x14005d065
movaps xmm0, xmmword [rbp - 0x29]
lea rcx, [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005d065
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
call fcn.140005a60
test al, al
jne 0x14005ce10
mov eax, 3
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005d090
mov rsi, qword [rsp + 0xd0]
add rsp, 0xb0
pop rbp
ret
cmp byte [0x1400701e0], dil
mov rbx, qword [0x140070978]
je 0x14005cfa8
nop dword [rax]
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 0x14005ce82
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 0x14005ce50
call fcn.140001b30
movzx eax, byte [0x140066b28]
lea rdx, [rbp - 0x29]
xorps xmm0, xmm0
mov qword [rbp - 0x19], 9
movups xmmword [rbp - 0x29], xmm0
mov rcx, rbx
mov qword [rbp - 0x11], rsi
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp - 0x29], xmm0
mov byte [rbp - 0x21], al
mov byte [rbp - 0x20], dil
call fcn.14005c1d0
mov rax, qword [0x140070908]
test rax, rax
je 0x14005ced6
mov rax, qword [rax + 0x98]
jmp 0x14005ced9
mov rax, rdi
cmp qword [rax + 0x48], rdi
jne 0x14005cee4
call fcn.140039dc0
call fcn.14003b000
call fcn.140011590
call fcn.1400062f0
cmp byte [0x140070228], dil
je 0x14005cf08
mov rcx, qword [0x140070970]
call fcn.140006890
cmp byte [0x1400701e1], dil
je 0x14005cf1d
mov rcx, qword [0x140070970]
call fcn.140002910
call fcn.140013490
mov rcx, qword [0x140070920]
lea r8, [0x140070938]
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 [0x140070920]
lea r8, [rbp + 0x27]
mov rdx, qword [0x140070938]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140070908]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rdi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140039350
mov rcx, qword [0x140070930]
xor r8d, r8d
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp byte [0x1400701e0], dil
jne 0x14005ce30
call fcn.14005bf60
mov rcx, qword [0x140070948]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140070970]
mov byte [0x1400701e0], dil
test rbx, rbx
je 0x14005d057
mov r8, qword [rbx + 0xf8]
test r8, r8
je 0x14005d04a
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 0x14005d02d
mov rcx, qword [r8 - 8]
add rdx, 0x27
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x14005d05e
mov r8, rcx
mov rcx, r8
call fcn.14005d0ec
mov qword [rbx + 0xf8], rdi
mov qword [rbx + 0x100], rdi
mov qword [rbx + 0x108], rdi
mov edx, 0x190
mov rcx, rbx
call fcn.14005d0ec
xor eax, eax
jmp 0x14005cde3
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 - 0x21], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3