Function at 0x14003ce00
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
lea rdx, [0x140052830]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14003ce2a
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor esi, esi
mov qword [0x1400527cc], rsi
mov qword [0x1400527d8], 1
mov qword [0x1400527f4], rsi
mov dword [0x1400527fc], esi
mov eax, dword [0x14005278c]
mov dword [0x1400527c0], eax
mov eax, dword [0x140052848]
mov dword [0x1400527c4], eax
mov dword [0x1400527c8], 0x15
mov dword [0x1400527d4], esi
mov dword [0x1400527f0], 0x50
mov dword [0x1400527ec], 1
mov r9, qword [0x140052798]
mov qword [0x1400527e0], r9
mov dword [0x1400527e8], 1
mov rcx, qword [0x140052830]
mov rax, qword [rcx]
lea rdx, [0x140052838]
mov qword [rsp + 0x30], rdx
lea rdx, [0x1400527c0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rsi + 1]
call qword [rax + 0x80]
mov rdi, qword [0x140052790]
mov ecx, 0x61f8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x140052790]
test r8, r8
je 0x14003cf55
mov r10d, dword [r8 + 0x3f60]
movsx rax, word [r8 + 0x60a8]
lea rdx, [r8 + 0x60ac]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x14003cf4a
lea ecx, [rax + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rdx, [r8 + 0x60ac]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], esi
inc word [rdx + 4]
inc dword [r8 + 0x60a0]
mov qword [rsp + 0x68], r9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r9
test r9, r9
je 0x14003cf7a
xor edx, edx
mov rcx, r9
call fcn.140003c40
jmp 0x14003cf7d
mov rax, rsi
mov qword [0x140052790], rax
call fcn.140007970
mov rbx, qword [0x140052790]
test rdi, rdi
cmovne rbx, rdi
mov qword [0x140052790], rbx
cmp word [0x140052890], 0
jne 0x14003cffe
movups xmm0, xmmword [0x140052048]
movaps xmmword [0x140052890], xmm0
mov eax, dword [0x140052058]
mov dword [0x1400528a0], eax
lea rcx, [0x1400528a4]
mov edx, 0x4e00
lea r8, [0x140048260]
mov r9d, 0xbb7
nop dword [rax + rax]
movsx eax, word [r8]
add edx, eax
mov word [rcx + 2], dx
mov word [rcx], dx
lea r8, [r8 + 2]
lea rcx, [rcx + 4]
sub r9, 1
jne 0x14003cfe0
mov word [rcx], si
lea rax, [0x140052890]
mov qword [rsp + 0x20], rax
movss xmm2, dword [0x14004a464]
mov rcx, qword [rbx + 0x38]
call fcn.1400277c0
mov qword [rbx + 0x20], rsi
mov rcx, qword [0x140052798]
call fcn.140001c80
mov rdi, qword [0x140052838]
mov rbx, qword [0x140052790]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
mov r9, qword [0x140052790]
test r9, r9
je 0x14003d0b3
mov r10d, dword [r9 + 0x3f60]
movsx r11, word [r9 + 0x60a8]
lea rdx, [r9 + 0x60ac]
lea rdx, [rdx + r11*8]
cmp dword [rdx], r10d
je 0x14003d0a8
lea ecx, [r11 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r9 + 0x60a8], cx
movsx rax, cx
lea rdx, [r9 + 0x60ac]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], esi
inc word [rdx + 4]
inc dword [r9 + 0x60a0]
test r8, r8
je 0x14003d0d6
mov qword [r8 + 8], rsi
mov qword [r8 + 0x10], rsi
mov qword [r8 + 0x18], rsi
mov dword [r8 + 0x20], 0x1388
mov dword [r8 + 0x24], 0x2710
jmp 0x14003d0d9
mov r8, rsi
mov qword [rbx + 0x98], r8
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 8
mov qword [r8], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor ecx, ecx
call fcn.140023200
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret