Function at 0x140057a40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140115010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
movzx eax, byte [0x1401044c8]
lea rdx, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 7], 9
movups xmmword [rbp - 9], xmm0
mov edi, 0xf
mov byte [rbp - 1], al
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp - 9], xmm0
mov qword [rbp + 0xf], rdi
mov byte [rbp], 0
call fcn.1400575e0
test al, al
jne 0x140057ab5
lea eax, [rdi - 0xe]
jmp 0x140057b7b
movzx eax, byte [0x1401044c8]
lea rdx, [rbp + 0x27]
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rbx
mov rbx, qword [0x1401158f8]
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.140056800
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, 0x10
jb 0x140057b4e
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057b49
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057b49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1ecc
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], rdi
mov byte [rbp + 0x27], sil
test bl, bl
jne 0x140057b98
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400c1e70
mov rdi, qword [rsp + 0xc0]
add rsp, 0xa0
pop rbp
ret
mov rbx, qword [0x140115888]
lea rdx, [0x1400e0620]
movss xmm3, dword [0x1401045dc]
mov rdi, qword [0x140115900]
mov qword [rsp + 0x28], rsi
mov rcx, qword [rbx + 0x38]
mov qword [rsp + 0x20], rsi
call fcn.14002da10
mov rcx, qword [rbx + 0x38]
call fcn.14002dee0
call fcn.140005a10
mov ecx, 8
call fcn.1400c1e90
lea rcx, [rbp - 1]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140002910]
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 - 9], rax
test rax, rax
je 0x140057f4b
cmp dword [rbp - 1], esi
je 0x140057f3f
movaps xmm0, xmmword [rbp - 9]
lea rcx, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140057f3f
xorps xmm0, xmm0
lea ecx, [rax + 8]
movdqa xmmword [rbp - 9], xmm0
call fcn.1400c1e90
lea rcx, [rbp - 0x11]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140002940]
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 0x140057f30
cmp dword [rbp - 0x11], esi
je 0x140057f24
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 0x140057f24
xorps xmm0, xmm0
lea ecx, [rax + 1]
movdqa xmmword [rbp - 0x19], xmm0
call fcn.1400c1e90
lea rcx, [rbp - 0x11]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140057f60]
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 0x140057f15
cmp dword [rbp - 0x11], esi
je 0x140057f09
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 0x140057f09
cmp byte [0x140115170], sil
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
je 0x140057e47
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 0x140057d62
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 0x140057d30
mov rax, qword [0x140115888]
test rax, rax
je 0x140057d77
mov rcx, qword [rax + 0x98]
jmp 0x140057d7a
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x140057d85
call fcn.140034bf0
call fcn.140035cf0
call fcn.140011750
call fcn.140006280
cmp byte [0x1401151b8], sil
je 0x140057da9
mov rcx, qword [0x140115900]
call fcn.140006810
cmp byte [0x140115171], sil
je 0x140057dbe
mov rcx, qword [0x140115900]
call fcn.140002990
call fcn.1400135d0
mov rcx, qword [0x1401158a8]
lea r8, [0x1401158c0]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x27], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x1401158a8]
lea r8, [rbp + 0x27]
mov rdx, qword [0x1401158c0]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140115888]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140033fc0
mov rcx, qword [0x1401158b8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
cmp byte [0x140115170], sil
jne 0x140057d11
call fcn.140056b20
mov rcx, qword [0x1401158d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140115900]
mov byte [0x140115170], sil
test rbx, rbx
je 0x140057efb
cmp qword [rbx + 0xf8], rsi
je 0x140057eee
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 0x140057ed4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140057f02
mov rcx, r8
call fcn.1400c1ecc
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0x108], rsi
mov edx, 0x190
mov rcx, rbx
call fcn.1400c1ecc
xor eax, eax
jmp 0x140057b6b
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 - 1], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3