Function at 0x140056f70
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.140056b10
test al, al
jne 0x140056fe7
mov eax, 1
jmp 0x1400570ae
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.140055f40
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, rdi
jbe 0x14005707f
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005707a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005707a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c140c
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 0x1400570cb
mov eax, 2
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400c13b0
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.14002d2d0
mov rcx, qword [rbx + 0x38]
call fcn.14002d740
call fcn.140005950
mov ecx, 8
call fcn.1400c13d0
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 0x140057488
cmp dword [rbp - 0x21], esi
je 0x14005747c
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 0x14005747c
xorps xmm0, xmm0
mov ecx, 8
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400c13d0
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 0x14005746d
cmp dword [rbp - 0x21], esi
je 0x140057461
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 0x140057461
xorps xmm0, xmm0
mov ecx, 1
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400c13d0
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400574a0]
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 0x140057452
cmp dword [rbp - 0x21], esi
je 0x140057446
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 0x140057446
cmp byte [0x1401141f0], sil
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
je 0x140057389
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 0x1400572a2
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 0x140057270
mov rax, qword [0x140114908]
test rax, rax
je 0x1400572b7
mov rcx, qword [rax + 0x98]
jmp 0x1400572ba
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x1400572c5
call fcn.1400341f0
call fcn.1400352f0
call fcn.1400114a0
call fcn.1400061e0
cmp byte [0x140114238], sil
je 0x1400572e9
mov rcx, qword [0x140114980]
call fcn.140006770
cmp byte [0x1401141f1], sil
je 0x1400572fe
mov rcx, qword [0x140114980]
call fcn.140002970
call fcn.1400133a0
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.1400335c0
mov rcx, qword [0x140114938]
xor r8d, r8d
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp byte [0x1401141f0], sil
jne 0x140057250
call fcn.140056270
mov rcx, qword [0x140114950]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140114980]
mov byte [0x1401141f0], sil
test rbx, rbx
je 0x140057438
mov r8, qword [rbx + 0xf8]
test r8, r8
je 0x14005742b
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 0x14005740e
mov rcx, qword [r8 - 8]
add rdx, 0x27
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x14005743f
mov r8, rcx
mov rcx, r8
call fcn.1400c140c
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0x108], rsi
mov edx, 0x190
mov rcx, rbx
call fcn.1400c140c
xor eax, eax
jmp 0x14005709e
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