Function at 0x14004eeb0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
xor esi, esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x14004e950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, [0x1400fb7a8]
lea ecx, [rsi + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14004eef5
xor al, al
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
mov qword [0x1400fb75c], rsi
mov qword [0x1400fb768], 1
mov qword [0x1400fb784], rsi
mov dword [0x1400fb78c], esi
cvttss2si rax, dword [0x1400fb70c]
mov dword [0x1400fb750], eax
cvttss2si rax, dword [0x1400fb7fc]
mov dword [0x1400fb754], eax
mov dword [0x1400fb758], 0x15
mov dword [0x1400fb764], esi
mov dword [0x1400fb780], 0x50
mov dword [0x1400fb77c], 1
mov r9, qword [0x1400fbce8]
mov qword [0x1400fb770], r9
mov dword [0x1400fb778], 1
mov rcx, qword [0x1400fb7a8]
mov rax, qword [rcx]
lea rdx, [0x1400fbcf0]
mov qword [rsp + 0x30], rdx
lea rdx, [0x1400fb750]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
mov rax, qword [0x1400fb680]
test rax, rax
je 0x14004efb6
inc dword [rax + 0x3c8]
mov rdx, qword [0x1400fb670]
mov ecx, 0x3bf0
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x90]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14004eff9
mov rcx, rax
call fcn.140004700
mov rdi, rax
jmp 0x14004effc
mov rdi, rsi
mov rax, qword [0x1400fb680]
test rax, rax
cmove rax, rdi
mov qword [0x1400fb680], rax
mov dword [rsp + 0x4c], esi
mov qword [rsp + 0x68], rsi
lea rcx, str.Window
mov qword [rsp + 0x40], rcx
xor r8d, r8d
xor edx, edx
call fcn.140005b30
mov dword [rsp + 0x48], eax
lea rax, [0x140015d60]
mov qword [rsp + 0x50], rax
lea rax, [0x140015de0]
mov qword [rsp + 0x58], rax
lea rax, [0x140015ec0]
mov qword [rsp + 0x60], rax
lea rbx, [rdi + 0x2db0]
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
test eax, eax
jne 0x14004f0a7
mov eax, esi
test ecx, ecx
jne 0x14004f07b
lea edx, [rcx + 8]
mov rcx, rbx
call fcn.140016e60
mov eax, dword [rbx]
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 8]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + rcx*8 + 0x20], xmm0
jmp 0x14004f110
cmp eax, ecx
jne 0x14004f0d7
lea r8d, [rax + 1]
test ecx, ecx
je 0x14004f0be
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14004f0c3
mov eax, 8
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
mov rcx, rbx
call fcn.140016e60
mov eax, dword [rbx]
test eax, eax
jle 0x14004f0f2
mov rdx, qword [rbx + 8]
cdqe
lea r8, [rax + rax*2]
shl r8, 4
lea rcx, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rbx + 8]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x20], xmm0
inc dword [rbx]
mov byte [rdi], 1
mov rbx, qword [0x1400fbce8]
lea rcx, [0x1400fbca8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004f20e
lea rcx, [0x1400fbca0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004f20e
mov qword [0x1400fbc98], rbx
mov rcx, qword [0x1400fb680]
or dword [rcx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rcx + 0xd8], rax
mov qword [rcx + 0x108], rbx
mov dword [rcx + 0x3c], 9
mov dword [rcx + 0x40], 0x25
mov dword [rcx + 0x44], 0x27
mov dword [rcx + 0x48], 0x26
mov dword [rcx + 0x4c], 0x28
mov dword [rcx + 0x50], 0x21
mov dword [rcx + 0x54], 0x22
mov dword [rcx + 0x58], 0x24
mov dword [rcx + 0x5c], 0x23
mov dword [rcx + 0x60], 0x2d
mov dword [rcx + 0x64], 0x2e
mov dword [rcx + 0x68], 8
mov dword [rcx + 0x6c], 0x20
mov dword [rcx + 0x70], 0xd
mov dword [rcx + 0x74], 0x1b
mov dword [rcx + 0x78], 0x41
mov dword [rcx + 0x7c], 0x43
mov dword [rcx + 0x80], 0x56
mov dword [rcx + 0x84], 0x58
mov dword [rcx + 0x88], 0x59
mov dword [rcx + 0x8c], 0x5a
jmp 0x14004f215
mov rcx, qword [0x1400fb680]
mov rax, qword [0x1400fbcf0]
mov byte [0x1400d7050], 0
lea rdx, str.imgui_impl_dx9
mov qword [rcx + 0xe0], rdx
mov qword [0x1400fbc88], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x14004a740]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400fb7a8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x14004a9a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.14004eb50
mov rcx, qword [0x1400fb710]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400fbcf0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400fb7a8]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edx, edx
lea rcx, str.ft4lswrt
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov al, 1
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret