Function at 0x140057ba0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140115040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
movzx eax, byte [0x1401044e8]
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.140057740
test al, al
jne 0x140057c17
mov eax, 1
jmp 0x140057cde
movzx eax, byte [0x1401044e8]
lea rdx, [rbp + 0x27]
xorps xmm0, xmm0
mov qword [rsp + 0xc0], rbx
mov rbx, qword [0x140115978]
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.140056b10
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, rdi
jbe 0x140057caf
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057caa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057caa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c203c
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 0x140057cfb
mov eax, 2
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400c1fe0
mov rdi, qword [rsp + 0xd0]
add rsp, 0xb0
pop rbp
ret
mov rbx, qword [0x140115908]
lea rdx, [0x1400e0640]
movss xmm3, dword [0x1401045fc]
mov rdi, qword [0x140115980]
mov qword [rsp + 0x28], rsi
mov rcx, qword [rbx + 0x38]
mov qword [rsp + 0x20], rsi
call fcn.14002dea0
mov rcx, qword [rbx + 0x38]
call fcn.14002e310
call fcn.140005a70
mov ecx, 8
call fcn.1400c2000
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140002a10]
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 0x1400580b8
cmp dword [rbp - 0x21], esi
je 0x1400580ac
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 0x1400580ac
xorps xmm0, xmm0
mov ecx, 8
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400c2000
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140002a40]
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 0x14005809d
cmp dword [rbp - 0x21], esi
je 0x140058091
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 0x140058091
xorps xmm0, xmm0
mov ecx, 1
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400c2000
lea rcx, [rbp - 0x21]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400580d0]
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 0x140058082
cmp dword [rbp - 0x21], esi
je 0x140058076
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 0x140058076
cmp byte [0x1401151f0], sil
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
je 0x140057fb9
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 0x140057ed2
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 0x140057ea0
mov rax, qword [0x140115908]
test rax, rax
je 0x140057ee7
mov rcx, qword [rax + 0x98]
jmp 0x140057eea
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x140057ef5
call fcn.140034dc0
call fcn.140035ec0
call fcn.140012070
call fcn.1400069e0
cmp byte [0x140115238], sil
je 0x140057f19
mov rcx, qword [0x140115980]
call fcn.1400075f0
cmp byte [0x1401151f1], sil
je 0x140057f2e
mov rcx, qword [0x140115980]
call fcn.140002a90
call fcn.140013f70
mov rcx, qword [0x140115928]
lea r8, [0x140115940]
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 [0x140115928]
lea r8, [rbp + 0x27]
mov rdx, qword [0x140115940]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140115908]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140034190
mov rcx, qword [0x140115938]
xor r8d, r8d
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp byte [0x1401151f0], sil
jne 0x140057e80
call fcn.140056e40
mov rcx, qword [0x140115950]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140115980]
mov byte [0x1401151f0], sil
test rbx, rbx
je 0x140058068
mov r8, qword [rbx + 0xf8]
test r8, r8
je 0x14005805b
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 0x14005803e
mov rcx, qword [r8 - 8]
add rdx, 0x27
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x14005806f
mov r8, rcx
mov rcx, r8
call fcn.1400c203c
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rsi
mov qword [rbx + 0x108], rsi
mov edx, 0x190
mov rcx, rbx
call fcn.1400c203c
xor eax, eax
jmp 0x140057cce
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