Function at 0x140056eb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140114040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
movzx eax, byte [0x1401034e8]
lea rdx, [rbp - 0x29]
xorps xmm0, xmm0
mov qword [rbp - 0x19], 9
movups xmmword [rbp - 0x29], xmm0
mov edi, 0xf
mov byte [rbp - 0x21], al
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rdi
mov byte [rbp - 0x20], 0
call fcn.140056a50
test al, al
jne 0x140056f27
mov eax, 1
jmp 0x140056fee
movzx eax, byte [0x1401034e8]
lea rdx, [rbp + 0x27]
xorps xmm0, xmm0
mov qword [rsp + 0xc0], rbx
mov rbx, qword [0x140114978]
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], rdi
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.140055eb0
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, rdi
jbe 0x140056fbf
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056fba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056fba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c134c
mov qword [rsp + 0xc8], rsi
xor esi, esi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], rdi
mov byte [rbp + 0x27], sil
test bl, bl
jne 0x14005700b
mov eax, 2
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400c12f0
mov rdi, qword [rsp + 0xd0]
add rsp, 0xb0
pop rbp
ret
mov rbx, qword [0x140114908]
lea rdx, [0x1400df630]
movss xmm3, dword [0x1401035fc]
mov rdi, qword [0x140114980]
mov qword [rsp + 0x28], rsi
mov rcx, qword [rbx + 0x38]
mov qword [rsp + 0x20], rsi
call fcn.14002d240
mov rcx, qword [rbx + 0x38]
call fcn.14002d6b0
call fcn.1400058c0
mov ecx, 8
call fcn.1400c1310
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400028f0]
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 - 0x29], rax
test rax, rax
je 0x1400573c8
cmp dword [rbp - 0x21], esi
je 0x1400573bc
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 0x1400573bc
xorps xmm0, xmm0
mov ecx, 8
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400c1310
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140002920]
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 - 0x29], rax
test rax, rax
je 0x1400573ad
cmp dword [rbp - 0x21], esi
je 0x1400573a1
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 0x1400573a1
xorps xmm0, xmm0
mov ecx, 1
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400c1310
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400573e0]
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 - 0x29], rax
test rax, rax
je 0x140057392
cmp dword [rbp - 0x21], esi
je 0x140057386
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 0x140057386
cmp byte [0x1401141f0], sil
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
je 0x1400572c9
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 0x1400571e2
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 0x1400571b0
mov rax, qword [0x140114908]
test rax, rax
je 0x1400571f7
mov rcx, qword [rax + 0x98]
jmp 0x1400571fa
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x140057205
call fcn.140034160
call fcn.140035260
call fcn.140011410
call fcn.140006150
cmp byte [0x140114238], sil
je 0x140057229
mov rcx, qword [0x140114980]
call fcn.1400066e0
cmp byte [0x1401141f1], sil
je 0x14005723e
mov rcx, qword [0x140114980]
call fcn.140002970
call fcn.140013310
mov rcx, qword [0x140114928]
lea r8, [0x140114940]
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 [0x140114928]
lea r8, [rbp + 0x27]
mov rdx, qword [0x140114940]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140114908]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140033530
mov rcx, qword [0x140114938]
xor r8d, r8d
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp byte [0x1401141f0], sil
jne 0x140057190
call fcn.1400561e0
mov rcx, qword [0x140114950]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140114980]
mov byte [0x1401141f0], sil
test rbx, rbx
je 0x140057378
mov r8, qword [rbx + 0xf8]
test r8, r8
je 0x14005736b
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 0x14005734e
mov rcx, qword [r8 - 8]
add rdx, 0x27
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x14005737f
mov r8, rcx
mov rcx, r8
call fcn.1400c134c
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0x108], rsi
mov edx, 0x190
mov rcx, rbx
call fcn.1400c134c
xor eax, eax
jmp 0x140056fde
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], 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 - 0x21], 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 - 0x21], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3