Function at 0x140001e60
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 [0x140047040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
lea ecx, [rbp + 8]
call fcn.140039c48
lea rcx, [0x140001960]
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, [0x1400030f0]
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 0x140002240
xorps xmm0, xmm0
movups xmmword [0x140047170], xmm0
movups xmmword [0x140047180], xmm0
movups xmmword [0x140047190], xmm0
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x140047a50]
lea rcx, [0x140047170]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140001f30
lea rcx, [0x140047170]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x140047170]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x140047a90]
cmp rax, rcx
jne 0x140001f7d
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 [0x140047a50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140047a90]
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 [0x140047a90]
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 [0x140047ad8]
mov rax, qword [0x140047a90]
mov qword [rcx + 0x120], rax
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov eax, dword [0x140047b48]
cmp dword [rsp + 0x48], eax
jne 0x140001ffc
cmp edx, dword [0x140047b50]
jne 0x140001ffc
mov eax, dword [0x140047b4c]
cmp dword [rsp + 0x4c], eax
jne 0x140001ffc
cmp ecx, dword [0x140047b54]
je 0x140002060
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [0x140047b48], xmm0
mov dword [0x140047aa0], edx
mov dword [0x140047aa4], ecx
mov dword [0x140047120], edx
mov dword [0x140047124], 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 [0x140047a50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140047118]
mov rax, qword [rcx]
lea rdx, [0x140047120]
call qword [rax + 0x80]
call fcn.140001980
cmp dword [0x140047178], 0x12
jne 0x140001ef0
mov rcx, qword [0x140047ad8]
test rcx, rcx
je 0x140002087
mov rdi, qword [rcx + 0xf0]
jmp 0x14000208a
mov rdi, rbp
lea rsi, [rcx + 8]
test rcx, rcx
je 0x140002107
mov rbx, qword [rcx + 0xf0]
test rbx, rbx
je 0x140002107
cmp qword [rbx], 0
je 0x140002107
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400020c2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 8], rbp
mov rcx, qword [0x140047ad8]
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1400020df
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 0x10], rbp
mov rcx, qword [0x140047ad8]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140002107
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 0x18], rbp
mov rcx, qword [0x140047ad8]
mov rax, qword [rcx + 0xa8]
mov qword [rax + 8], rbp
mov rdx, qword [rdi]
test rdx, rdx
je 0x14000211f
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140047ad8]
mov qword [rsi + 0xd8], rbp
mov qword [rsi + 0xe8], rbp
test rcx, rcx
je 0x140002138
dec dword [rcx + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140047ad8]
test rax, rax
je 0x140002156
mov rbx, qword [rax + 0xe8]
jmp 0x140002159
mov rbx, rbp
lea rdi, [rax + 8]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140002173
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140047ad8]
mov qword [rdi + 0xd0], rbp
mov qword [rdi + 0xe0], rbp
test rax, rax
je 0x14000218c
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140047ad8]
mov rcx, rbx
call fcn.140009fb0
cmp qword [0x140047ad8], rbx
jne 0x1400021b4
mov qword [0x140047ad8], rbp
test rbx, rbx
je 0x1400021dc
mov rcx, rbx
call fcn.140018c30
mov rax, qword [0x140047ad8]
test rax, rax
je 0x1400021d3
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140047118]
test rcx, rcx
je 0x1400021fe
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140047118]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140047110]
test rcx, rcx
je 0x140002210
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140047a50]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x140047a18]
mov rcx, qword [0x140047a40]
call qword [sym.imp.USER32.dll_UnregisterClassA]
nop
cmp dword [rsp + 0x60], 0
je 0x140002250
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.140039c20
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