Function at 0x14005d470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
movzx eax, byte [0x140067c38]
lea rdx, [rbp - 0x49]
xorps xmm0, xmm0
mov qword [rbp - 0x39], 9
movups xmmword [rbp - 0x49], xmm0
mov esi, 0xf
mov byte [rbp - 0x41], al
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp - 0x49], xmm0
mov qword [rbp - 0x31], rsi
mov byte [rbp - 0x40], 0
call fcn.14005d010
test al, al
jne 0x14005d4e5
lea eax, [rsi - 0xe]
jmp 0x14005d62d
movzx eax, byte [0x140067c38]
lea rdx, [rbp + 0x27]
xorps xmm0, xmm0
mov qword [rsp + 0xe0], rbx
mov rbx, qword [0x140071938]
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], rsi
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.14005c470
mov rdx, qword [rbp + 0x3f]
movzx ebx, al
cmp rdx, 0x10
jb 0x14005d57e
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d579
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d579
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005d91c
test bl, bl
jne 0x14005d58c
mov eax, 2
jmp 0x14005d625
mov rbx, qword [0x140071930]
mov ecx, 8
mov qword [rsp + 0xe8], rdi
call fcn.14005d8e0
lea rcx, [rbp - 0x41]
xor edi, edi
mov qword [rsp + 0x28], rcx
lea r8, [0x1400028d0]
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov r9, rax
mov qword [rax], rbx
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14005d898
cmp dword [rbp - 0x41], edi
jne 0x14005d5e7
lea ecx, [rdi + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x49]
lea rcx, [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14005d607
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
call fcn.1400059f0
test al, al
jne 0x14005d64a
mov eax, 3
mov rdi, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005d8c0
mov rsi, qword [rsp + 0xf0]
add rsp, 0xd0
pop rbp
ret
cmp byte [0x140071170], dil
mov rbx, qword [0x140071938]
je 0x14005d7d6
nop
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 0x14005d6b2
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 0x14005d680
call fcn.140001b30
movzx eax, byte [0x140067c38]
lea rdx, [rbp - 0x29]
xorps xmm0, xmm0
mov qword [rbp - 0x19], 9
movups xmmword [rbp - 0x29], xmm0
mov rcx, rbx
mov qword [rbp - 0x11], rsi
movsd xmm0, qword [str.grcWindow]
movsd qword [rbp - 0x29], xmm0
mov byte [rbp - 0x21], al
mov byte [rbp - 0x20], dil
call fcn.14005ca00
mov rax, qword [0x1400718c8]
test rax, rax
je 0x14005d706
mov rax, qword [rax + 0x98]
jmp 0x14005d709
mov rax, rdi
cmp qword [rax + 0x48], rdi
jne 0x14005d714
call fcn.14003a730
call fcn.14003b960
call fcn.140011640
call fcn.140006220
cmp byte [0x1400711b8], dil
je 0x14005d738
mov rcx, qword [0x140071930]
call fcn.1400067b0
cmp byte [0x140071171], dil
je 0x14005d74d
mov rcx, qword [0x140071930]
call fcn.140002920
call fcn.1400134c0
mov rcx, qword [0x1400718e0]
lea r8, [0x1400718f8]
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 [0x1400718e0]
lea r8, [rbp + 0x27]
mov rdx, qword [0x1400718f8]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1400718c8]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov rcx, rdi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140039cc0
mov rcx, qword [0x1400718f0]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
cmp byte [0x140071170], dil
jne 0x14005d660
call fcn.14005c790
mov rcx, qword [0x140071908]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140071930]
mov byte [0x140071170], dil
test rbx, rbx
je 0x14005d88a
cmp qword [rbx + 0xf8], rdi
je 0x14005d87d
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 0x14005d863
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005d891
mov rcx, r8
call fcn.14005d91c
mov qword [rbx + 0xf8], rdi
mov qword [rbx + 0x100], rdi
mov qword [rbx + 0x108], rdi
mov edx, 0x190
mov rcx, rbx
call fcn.14005d91c
xor eax, eax
jmp 0x14005d61d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 6
mov dword [rbp - 0x41], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3