Function at 0x1400506b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14010d010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
lea rdx, str.grcWindow
lea rcx, [rsp + 0x70]
call fcn.140004330
mov rdx, rax
call fcn.140050250
test al, al
jne 0x140050710
mov eax, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ba990
add rsp, 0xa8
ret
mov qword [rsp + 0xb0], rbx
lea rdx, str.grcWindow
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xa0], rdi
call fcn.140004330
mov rdi, qword [0x14010d928]
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140050748
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rdi
mov qword [rdi + 0x98], rax
call fcn.14004f680
mov rdx, qword [rbx + 0x18]
movzx edi, al
cmp rdx, 0x10
jb 0x140050798
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140050793
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400507e9
mov rcx, r8
call fcn.1400ba9ec
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
test dil, dil
jne 0x1400507f0
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ba990
add rsp, 0xa8
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001590
test al, al
jne 0x140050800
mov eax, 3
jmp 0x1400507b9
mov ecx, 1
call fcn.1400ba9b0
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140050aa0]
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 [rsp + 0x30], rax
test rax, rax
je 0x140050a8e
cmp dword [rsp + 0x38], esi
jne 0x14005084c
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14005086f
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
cmp byte [0x14010d170], sil
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
je 0x1400509cc
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400508e5
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1400508b0
mov rax, qword [0x14010d8b8]
test rax, rax
je 0x1400508fa
mov rcx, qword [rax + 0x98]
jmp 0x1400508fd
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x140050908
call fcn.140033f10
call fcn.140035000
call fcn.140010d00
call fcn.140005a00
cmp byte [0x14010d1b8], sil
je 0x14005092c
mov rcx, qword [0x14010d930]
call fcn.140005f90
cmp byte [0x14010d171], sil
je 0x140050941
mov rcx, qword [0x14010d930]
call fcn.140002ae0
call fcn.140012b80
mov rcx, qword [0x14010d8d8]
lea r8, [0x14010d8f0]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rsp + 0x70], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x14010d8d8]
lea r8, [rsp + 0x70]
mov rdx, qword [0x14010d8f0]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x14010d8b8]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.1400332e0
mov rcx, qword [0x14010d8e8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
cmp byte [0x14010d170], sil
jne 0x140050890
call fcn.14004f9a0
mov rcx, qword [0x14010d900]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14010d930]
mov byte [0x14010d170], sil
test rbx, rbx
je 0x140050a80
cmp qword [rbx + 0xf8], rsi
je 0x140050a73
mov rcx, qword [rbx + 0x108]
movabs rax, 0x8421084210842109
sub rcx, qword [rbx + 0xf8]
imul rcx
add rdx, rcx
mov rcx, qword [rbx + 0xf8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0xf8
cmp rdx, 0x1000
jb 0x140050a59
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050a87
mov rcx, r8
call fcn.1400ba9ec
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0x108], rsi
mov edx, 0x190
mov rcx, rbx
call fcn.1400ba9ec
xor eax, eax
jmp 0x1400507b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 6
mov dword [rsp + 0x38], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3