Function at 0x140044470
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, qword [0x140059a28]
lea rdx, [0x140059ad0]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400444a5
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor esi, esi
mov qword [0x140059afc], rsi
mov qword [0x140059b08], 1
mov qword [0x140059b24], rsi
mov dword [0x140059b18], 1
mov qword [0x140059b10], rdi
mov dword [0x140059b04], esi
mov dword [0x140059af8], 0x15
mov eax, dword [0x140059b58]
mov dword [0x140059af0], eax
mov eax, dword [0x140059b64]
mov dword [0x140059af4], eax
mov dword [0x140059b1c], 1
mov dword [0x140059b20], 0x50
mov dword [0x140059b2c], esi
mov rcx, qword [0x140059ad0]
mov rax, qword [rcx]
lea rdx, [0x140059b50]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rsi
lea rdx, [0x140059af0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rdi
xor edx, edx
lea r8d, [rsi + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x14004456c
mov rcx, qword [0x140059ad0]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea ecx, [rsi + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x140059a10]
mov ecx, 0x6198
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
mov r9, qword [0x140059a10]
test r9, r9
je 0x1400445ec
mov r10d, dword [r9 + 0x3f60]
movsx rdx, word [r9 + 0x6048]
lea rax, [r9 + 0x604c]
lea rax, [rax + rdx*8]
cmp dword [rax], r10d
je 0x1400445e1
lea ecx, [rdx + 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 + 0x6048], cx
movsx rax, cx
lea rax, [rax*8 + 0x604c]
add rax, r9
mov dword [rax], r10d
mov dword [rax + 4], esi
inc word [rax + 4]
inc dword [r9 + 0x6040]
mov qword [rsp + 0x68], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r8
test r8, r8
je 0x140044611
xor edx, edx
mov rcx, r8
call fcn.140001590
jmp 0x140044614
mov rax, rsi
mov qword [0x140059a10], rax
call fcn.140005c80
test rbx, rbx
je 0x14004462e
mov qword [0x140059a10], rbx
jmp 0x140044635
mov rbx, qword [0x140059a10]
mov qword [rbx + 0x20], rsi
mov rcx, rdi
call fcn.14002ebd0
mov rdi, qword [0x140059b50]
mov rbx, qword [0x140059a10]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
mov r9, qword [0x140059a10]
test r9, r9
je 0x1400446c9
mov r10d, dword [r9 + 0x3f60]
movsx r11, word [r9 + 0x6048]
lea rdx, [r9 + 0x604c]
lea rdx, [rdx + r11*8]
cmp dword [rdx], r10d
je 0x1400446be
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 + 0x6048], cx
movsx rax, cx
lea rdx, [r9 + 0x604c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], esi
inc word [rdx + 4]
inc dword [r9 + 0x6040]
test r8, r8
je 0x1400446ef
mov qword [r8], rsi
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 0x1400446f2
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 eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret