Function at 0x140040c20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rsi, qword [0x140069490]
lea rdx, [0x1400694a0]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140040c56
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebp, ebp
mov qword [0x1400694cc], rbp
mov qword [0x1400694d8], 1
mov qword [0x1400694f4], rbp
mov dword [0x1400694e8], 1
mov qword [0x1400694e0], rsi
mov dword [0x1400694d4], ebp
mov dword [0x1400694c8], 0x15
mov eax, dword [0x14006953c]
mov dword [0x1400694c0], eax
mov eax, dword [0x140069538]
mov dword [0x1400694c4], eax
mov dword [0x1400694ec], 1
mov dword [0x1400694f0], 0x50
mov dword [0x1400694fc], 0x80000000
mov rcx, qword [0x1400694a0]
mov rax, qword [rcx]
lea rdx, [0x140069528]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
lea rdx, [0x1400694c0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rsi
xor edx, edx
lea r8d, [rbp + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x140040d21
mov rcx, qword [0x1400694a0]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea ecx, [rbp + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [0x140069368]
test rax, rax
je 0x140040d33
inc dword [rax + 0x3b8]
mov rdx, qword [0x140069360]
mov ecx, 0x3b28
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x140040d76
mov rcx, rax
call fcn.140001a70
mov rdi, rax
jmp 0x140040d79
mov rdi, rbp
mov rax, qword [0x140069368]
test rax, rax
cmove rax, rdi
mov qword [0x140069368], rax
mov dword [rsp + 0x4c], ebp
mov qword [rsp + 0x68], rbp
lea rcx, str.Window
mov qword [rsp + 0x40], rcx
xor r8d, r8d
xor edx, edx
call fcn.140002e30
mov dword [rsp + 0x48], eax
lea rax, [0x140012af0]
mov qword [rsp + 0x50], rax
lea rax, [0x140012b70]
mov qword [rsp + 0x58], rax
lea rax, [0x140012c50]
mov qword [rsp + 0x60], rax
lea rbx, [rdi + 0x2ce8]
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
test eax, eax
jne 0x140040e24
mov eax, ebp
test ecx, ecx
jne 0x140040df8
lea edx, [rcx + 8]
mov rcx, rbx
call fcn.140013ab0
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 0x140040e8d
cmp eax, ecx
jne 0x140040e54
lea r8d, [rax + 1]
test ecx, ecx
je 0x140040e3b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140040e40
mov eax, 8
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
mov rcx, rbx
call fcn.140013ab0
mov eax, dword [rbx]
test eax, eax
jle 0x140040e6f
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 rcx, qword [0x140069368]
mov qword [rcx + 0x20], rbp
movss xmm2, dword [0x14005c1f8]
mov rcx, qword [rcx + 0xa0]
call fcn.14001f0a0
call fcn.14001b050
lea rcx, [0x1400695c8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140040f98
lea rcx, [0x1400695c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140040f98
mov qword [0x1400695b8], rsi
mov rax, qword [0x140069368]
or dword [rax + 0xc], 6
mov qword [rax + 0xf8], rsi
mov dword [rax + 0x3c], 9
mov dword [rax + 0x40], 0x25
mov dword [rax + 0x44], 0x27
mov dword [rax + 0x48], 0x26
mov dword [rax + 0x4c], 0x28
mov dword [rax + 0x50], 0x21
mov dword [rax + 0x54], 0x22
mov dword [rax + 0x58], 0x24
mov dword [rax + 0x5c], 0x23
mov dword [rax + 0x60], 0x2d
mov dword [rax + 0x64], 0x2e
mov dword [rax + 0x68], 8
mov dword [rax + 0x6c], 0x20
mov dword [rax + 0x70], 0xd
mov dword [rax + 0x74], 0x1b
mov dword [rax + 0x78], 0x41
mov dword [rax + 0x7c], 0x43
mov dword [rax + 0x80], 0x56
mov dword [rax + 0x84], 0x58
mov dword [rax + 0x88], 0x59
mov dword [rax + 0x8c], 0x5a
mov rax, qword [0x140069528]
mov qword [0x1400695a8], rax
xor eax, eax
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret