Function at 0x140002650
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
lea ecx, [rbp + 8]
call fcn.140035db8
lea rcx, [0x140002160]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400037b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140002a30
xorps xmm0, xmm0
movups xmmword [0x140042150], xmm0
movups xmmword [0x140042160], xmm0
movups xmmword [0x140042170], xmm0
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x140042a30]
lea rcx, [0x140042150]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140002720
lea rcx, [0x140042150]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x140042150]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x140042a60]
cmp rax, rcx
jne 0x14000276d
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [0x140042a30]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140042a60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x40], rbp
lea rdx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140042a60]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], eax
mov rcx, qword [0x140042ab0]
mov rax, qword [0x140042a60]
mov qword [rcx + 0x120], rax
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov eax, dword [0x140042b28]
cmp dword [rsp + 0x48], eax
jne 0x1400027ec
cmp edx, dword [0x140042b30]
jne 0x1400027ec
mov eax, dword [0x140042b2c]
cmp dword [rsp + 0x4c], eax
jne 0x1400027ec
cmp ecx, dword [0x140042b34]
je 0x140002850
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [0x140042b28], xmm0
mov dword [0x140042a70], edx
mov dword [0x140042a74], ecx
mov dword [0x140042100], edx
mov dword [0x140042104], ecx
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x140042a30]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400420f8]
mov rax, qword [rcx]
lea rdx, [0x140042100]
call qword [rax + 0x80]
call fcn.140002180
cmp dword [0x140042158], 0x12
jne 0x1400026e0
mov rcx, qword [0x140042ab0]
test rcx, rcx
je 0x140002877
mov rdi, qword [rcx + 0xf0]
jmp 0x14000287a
mov rdi, rbp
lea rsi, [rcx + 8]
test rcx, rcx
je 0x1400028f7
mov rbx, qword [rcx + 0xf0]
test rbx, rbx
je 0x1400028f7
cmp qword [rbx], 0
je 0x1400028f7
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400028b2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 8], rbp
mov rcx, qword [0x140042ab0]
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1400028cf
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 0x10], rbp
mov rcx, qword [0x140042ab0]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400028f7
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 0x18], rbp
mov rcx, qword [0x140042ab0]
mov rax, qword [rcx + 0xa8]
mov qword [rax + 8], rbp
mov rdx, qword [rdi]
test rdx, rdx
je 0x14000290f
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140042ab0]
mov qword [rsi + 0xd8], rbp
mov qword [rsi + 0xe8], rbp
test rcx, rcx
je 0x140002928
dec dword [rcx + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140042ab0]
test rax, rax
je 0x140002946
mov rbx, qword [rax + 0xe8]
jmp 0x140002949
mov rbx, rbp
lea rdi, [rax + 8]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140002963
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140042ab0]
mov qword [rdi + 0xd0], rbp
mov qword [rdi + 0xe0], rbp
test rax, rax
je 0x14000297c
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140042ab0]
mov rcx, rbx
call fcn.140009fe0
cmp qword [0x140042ab0], rbx
jne 0x1400029a4
mov qword [0x140042ab0], rbp
test rbx, rbx
je 0x1400029cc
mov rcx, rbx
call fcn.140018c50
mov rax, qword [0x140042ab0]
test rax, rax
je 0x1400029c3
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400420f8]
test rcx, rcx
je 0x1400029ee
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400420f8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400420f0]
test rcx, rcx
je 0x140002a00
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140042a30]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1400429f8]
mov rcx, qword [0x140042a20]
call qword [sym.imp.USER32.dll_UnregisterClassA]
nop
cmp dword [rsp + 0x60], 0
je 0x140002a40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x60], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140035d90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret