Function at 0x14000e130
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
movaps xmmword [rsp + 0x140], xmm6
mov rax, qword [0x14005f4e8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, r9
mov r13, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov r14, qword [rbp + 0xc0]
mov qword [rbp - 0x80], r14
mov rsi, qword [rbp + 0xc8]
mov qword [rbp - 0x78], rsi
mov rdx, r8
lea rcx, [0x14005f720]
call fcn.14000de70
mov rax, qword [rbp + 0xd0]
mov qword [0x14005fa80], rax
mov rax, qword [rbp + 0xd8]
mov qword [0x14005fa88], rax
mov dword [rbp - 0x70], 0x50
mov dword [rbp - 0x6c], 0x40
lea rax, [0x14000e770]
mov qword [rbp - 0x68], rax
xor r12d, r12d
mov qword [rbp - 0x60], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp - 0x58], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r12
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
lea ecx, [r12 + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r12d, eax
xor eax, eax
mov qword [rsp + 0x58], rax
mov rcx, qword [rbp - 0x58]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9d, 0x90000000
mov r8, rdi
mov rdx, qword [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14005f9c8], rax
movdqa xmm0, xmmword [0x14004f1a0]
movdqu xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov ecx, 0x20
call sub.d3d9.dll_Direct3DCreate9
mov rcx, rax
mov qword [0x14005fa30], rax
xor edi, edi
test rax, rax
je 0x14000e636
mov qword [0x14005fa40], rdi
mov qword [0x14005fa4c], rdi
mov dword [0x14005fa54], edi
mov qword [0x14005fa5c], rdi
mov dword [0x14005fa64], edi
mov qword [0x14005fa74], rdi
mov dword [0x14005fa68], 1
mov dword [0x14005fa58], 1
mov dword [0x14005fa48], 0x15
mov dword [0x14005fa6c], 1
mov dword [0x14005fa70], 0x50
mov dword [0x14005fa7c], edi
mov rax, qword [rax]
lea rdx, [0x14005fa38]
mov qword [rsp + 0x30], rdx
lea rdx, [0x14005fa40]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, qword [0x14005f9c8]
xor edx, edx
lea r8d, [rdi + 1]
call qword [rax + 0x80]
test eax, eax
js 0x14000e62f
lea edx, [rdi + 0xa]
mov rcx, qword [0x14005f9c8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14005f9c8]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [rdi + 1]
call fcn.14004bc28
mov qword [rbp - 0x20], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14000ddf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14000e70f
cmp dword [rsp + 0x68], edi
je 0x14000e71e
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000e729
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], 0x10
mov edx, 0x15a0
lea r9d, [rdi + 8]
mov r8d, 0x3dc
lea rcx, [0x14004f0d8]
call fcn.1400165d0
xor ecx, ecx
call fcn.1400160f0
xor ecx, ecx
call fcn.14002f5d0
mov rcx, qword [0x14005f9c8]
call fcn.140037ee0
mov rcx, qword [0x14005fa38]
call fcn.140037280
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x14000e731
mov rax, qword [rcx]
call qword [rax + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movss xmm6, dword [0x14004eabc]
nop
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [r9 - 1]
mov rcx, qword [0x14005f9c8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14000e49b
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x14000e5d3
call fcn.140037340
call fcn.140038020
call fcn.14001e580
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14000e731
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14000e731
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.140016c10
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
mov dword [rsp + 0x30], edi
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], edi
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14000e57a
call fcn.140020440
call fcn.1400182d0
mov rcx, rax
call fcn.1400374c0
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14000e5d3
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14000e5d3
call fcn.1400372c0
mov rcx, qword [0x14005fa38]
mov rax, qword [rcx]
lea rdx, [0x14005fa40]
call qword [rax + 0x80]
call fcn.140037110
cmp dword [rbp - 8], 0x12
jne 0x14000e440
call fcn.140037e30
call fcn.140038220
xor ecx, ecx
call fcn.140016660
mov rcx, qword [0x14005fa38]
test rcx, rcx
je 0x14000e607
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005fa38], rdi
mov rcx, qword [0x14005fa30]
test rcx, rcx
je 0x14000e620
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005fa30], rdi
mov rcx, qword [0x14005f9c8]
call qword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x14000e66b
mov rcx, qword [0x14005fa30]
mov rdx, qword [0x14005fa38]
test rdx, rdx
je 0x14000e659
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [0x14005fa38], rdi
mov rcx, qword [0x14005fa30]
test rcx, rcx
je 0x14000e66b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005fa30], rdi
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassA]
nop
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14000e696
cmp rcx, r13
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [r13 + 0x38], rdi
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x14000e6b2
cmp rcx, r15
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [r15 + 0x38], rdi
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14000e6ce
cmp rcx, r14
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [r14 + 0x38], rdi
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14000e6e7
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], rdi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14004c030
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x68], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3