Function at 0x140001de0
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, [0x140003070]
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 0x1400021c0
xorps xmm0, xmm0
movups xmmword [0x140047140], xmm0
movups xmmword [0x140047150], xmm0
movups xmmword [0x140047160], xmm0
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x140047a20]
lea rcx, [0x140047140]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140001eb0
lea rcx, [0x140047140]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x140047140]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x140047a50]
cmp rax, rcx
jne 0x140001efd
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 [0x140047a20]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140047a50]
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 [0x140047a50]
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 [0x140047aa0]
mov rax, qword [0x140047a50]
mov qword [rcx + 0x120], rax
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov eax, dword [0x140047b18]
cmp dword [rsp + 0x48], eax
jne 0x140001f7c
cmp edx, dword [0x140047b20]
jne 0x140001f7c
mov eax, dword [0x140047b1c]
cmp dword [rsp + 0x4c], eax
jne 0x140001f7c
cmp ecx, dword [0x140047b24]
je 0x140001fe0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [0x140047b18], xmm0
mov dword [0x140047a60], edx
mov dword [0x140047a64], ecx
mov dword [0x1400470f0], edx
mov dword [0x1400470f4], 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 [0x140047a20]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400470e8]
mov rax, qword [rcx]
lea rdx, [0x1400470f0]
call qword [rax + 0x80]
call fcn.140001980
cmp dword [0x140047148], 0x12
jne 0x140001e70
mov rcx, qword [0x140047aa0]
test rcx, rcx
je 0x140002007
mov rdi, qword [rcx + 0xf0]
jmp 0x14000200a
mov rdi, rbp
lea rsi, [rcx + 8]
test rcx, rcx
je 0x140002087
mov rbx, qword [rcx + 0xf0]
test rbx, rbx
je 0x140002087
cmp qword [rbx], 0
je 0x140002087
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140002042
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 8], rbp
mov rcx, qword [0x140047aa0]
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14000205f
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 0x10], rbp
mov rcx, qword [0x140047aa0]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140002087
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [rbx + 0x18], rbp
mov rcx, qword [0x140047aa0]
mov rax, qword [rcx + 0xa8]
mov qword [rax + 8], rbp
mov rdx, qword [rdi]
test rdx, rdx
je 0x14000209f
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140047aa0]
mov qword [rsi + 0xd8], rbp
mov qword [rsi + 0xe8], rbp
test rcx, rcx
je 0x1400020b8
dec dword [rcx + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140047aa0]
test rax, rax
je 0x1400020d6
mov rbx, qword [rax + 0xe8]
jmp 0x1400020d9
mov rbx, rbp
lea rdi, [rax + 8]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400020f3
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140047aa0]
mov qword [rdi + 0xd0], rbp
mov qword [rdi + 0xe0], rbp
test rax, rax
je 0x14000210c
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140047aa0]
mov rcx, rbx
call fcn.140009f30
cmp qword [0x140047aa0], rbx
jne 0x140002134
mov qword [0x140047aa0], rbp
test rbx, rbx
je 0x14000215c
mov rcx, rbx
call fcn.140018bb0
mov rax, qword [0x140047aa0]
test rax, rax
je 0x140002153
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400470e8]
test rcx, rcx
je 0x14000217e
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400470e8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400470e0]
test rcx, rcx
je 0x140002190
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140047a20]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1400479e8]
mov rcx, qword [0x140047a10]
call qword [sym.imp.USER32.dll_UnregisterClassA]
nop
cmp dword [rsp + 0x60], 0
je 0x1400021d0
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