Function at 0x140046a90
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rdx, [0x14006a7c8]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140046abb
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [0x140069580]
lea rdx, [0x14006a810]
mov rcx, qword [0x14006a7c8]
mov r9, rbx
mov qword [rsp + 0x38], rdx
mov r8d, 1
mov dword [0x14006a7d0], eax
lea rdx, [0x14006a7d0]
mov eax, dword [0x140069584]
mov qword [0x14006a7e8], 1
mov dword [0x14006a7f8], 1
mov qword [0x14006a7f0], rbx
mov dword [0x14006a7d8], 0x15
mov dword [0x14006a7d4], eax
mov dword [0x14006a7fc], 1
mov dword [0x14006a800], 0x50
mov dword [0x14006a80c], 0x80000000
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [0x14006a7dc], rsi
mov qword [0x14006a804], rsi
mov dword [0x14006a7e4], esi
mov rax, qword [rcx]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [rsp + 0x20], 0x40
call qword [rax + 0xa0]
test eax, eax
jns 0x140046b8f
mov rcx, qword [0x14006a7c8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x58], rdi
call fcn.140013050
mov rdi, qword [0x14006a7b8]
lea rcx, [0x14006acb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140046c92
lea rcx, [0x14006acb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140046c92
mov rcx, qword [0x14006a7b8]
lea rax, str.imgui_impl_win32
mov qword [0x14006aca8], rbx
or dword [rcx + 0xc], 6
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 0x140046c99
mov rcx, qword [0x14006a7b8]
mov rax, qword [0x14006a810]
lea rdx, str.imgui_impl_dx9
movss xmm3, dword [0x140059a8c]
mov r8d, 0x6400
mov qword [rcx + 0xe0], rdx
lea rdx, [0x1400630f0]
mov rcx, qword [rdi + 0xa0]
mov qword [rsp + 0x28], rsi
mov qword [0x14006ac98], rax
mov qword [rsp + 0x20], rsi
call fcn.14002cf90
cmp qword [0x14006ac98], rsi
je 0x140046d46
mov rcx, qword [0x14006aca0]
test rcx, rcx
je 0x140046d02
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006aca0], rsi
mov rcx, qword [0x14006ac90]
test rcx, rcx
je 0x140046d1b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006ac90], rsi
mov rcx, qword [0x14006ac88]
mov rbx, qword [0x14006a7b8]
test rcx, rcx
je 0x140046d34
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006ac88], rsi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rsi
call fcn.140031380
movss xmm3, dword [0x140059a8c]
lea rdx, [0x14004ff90]
mov rcx, qword [rdi + 0xa0]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.14002d0f0
mov rcx, qword [0x14006a7c8]
mov rax, qword [rcx]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
jmp qword [rax + 0x10]