Function at 0x1400308e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
lea rdx, [0x140040970]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140030906
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [0x1400409c4]
lea rdx, [0x140040978]
mov rcx, qword [0x140040970]
mov r8d, 1
mov r9, qword [0x140040968]
mov qword [rsp + 0x38], rdx
lea rdx, [0x140040980]
mov dword [0x140040980], eax
mov eax, dword [0x1400409c0]
mov qword [0x140040998], 1
mov dword [0x1400409a8], 1
mov qword [0x1400409a0], r9
mov dword [0x140040988], 0x15
mov dword [0x140040984], eax
mov dword [0x1400409ac], 1
mov dword [0x1400409b0], 0x50
mov dword [0x1400409bc], 0x80000000
mov qword [rsp + 0x40], rdi
xor edi, edi
mov qword [0x14004098c], rdi
mov qword [0x1400409b4], rdi
mov dword [0x140040994], edi
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [rsp + 0x20], 0x40
call qword [rax + 0xa0]
test eax, eax
jns 0x1400309de
mov rcx, qword [0x140040970]
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 + 0x50], rbx
call fcn.140006b40
mov rbx, qword [0x140040968]
lea rcx, [0x140040a18]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140030ae1
lea rcx, [0x140040a10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140030ae1
mov rcx, qword [0x140040928]
lea rax, str.imgui_impl_win32
mov qword [0x140040a08], 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 0x140030ae8
mov rcx, qword [0x140040928]
cmp byte [0x1400400d0], dil
mov rax, qword [0x140040978]
mov rbx, qword [rsp + 0x50]
je 0x140030b04
mov byte [0x1400400d0], dil
lea rdx, str.imgui_impl_dx9
mov qword [0x1400409f8], rax
mov qword [rcx + 0xe0], rdx
call fcn.14001c640
call fcn.14001c640
mov dword [rcx + 0x1554], 0x41000000
mov dword [rcx + 0x1558], 0x41000000
mov dword [rcx + 0x155c], 0x40a00000
mov dword [rcx + 0x1584], 0x40800000
mov dword [rcx + 0x1588], 0x40000000
mov dword [rcx + 0x1594], 0x41000000
mov dword [rcx + 0x1598], 0x40800000
mov dword [rcx + 0x159c], 0x40800000
mov dword [rcx + 0x15a0], 0x40800000
mov dword [rcx + 0x15ac], 0x41a80000
mov qword [rcx + 0x15b4], 0x41600000
mov qword [rcx + 0x15bc], 0x41200000
mov qword [rcx + 0x15c4], rdi
mov dword [rcx + 0x1574], edi
mov dword [rcx + 0x1560], 0x3f800000
mov dword [rcx + 0x1578], 0x3f800000
mov dword [rcx + 0x1580], edi
mov dword [rcx + 0x1590], edi
movdqa xmm2, xmmword [0x140039d00]
movdqa xmm0, xmmword [0x140039d30]
movdqa xmm1, xmmword [0x140039d40]
movdqa xmm3, xmmword [0x140039ea0]
movups xmmword [rcx + 0x1610], xmm0
movdqa xmm0, xmmword [0x140039950]
movups xmmword [rcx + 0x1650], xmm0
movdqa xmm0, xmmword [0x140039db0]
movups xmmword [rcx + 0x16c0], xmm0
movdqa xmm0, xmmword [0x140039a10]
movups xmmword [rcx + 0x16e0], xmm0
movdqa xmm0, xmmword [0x140039d20]
movups xmmword [rcx + 0x1620], xmm1
movdqa xmm1, xmmword [0x140039d50]
movups xmmword [rcx + 0x1700], xmm0
movdqa xmm0, xmmword [0x140039b30]
movups xmmword [rcx + 0x16d0], xmm1
movdqa xmm1, xmmword [0x140039e10]
movups xmmword [rcx + 0x1720], xmm0
movups xmmword [rcx + 0x1730], xmm0
movdqa xmm0, xmmword [0x140039d60]
movups xmmword [rcx + 0x16f0], xmm1
movdqa xmm1, xmmword [0x140039e00]
movups xmmword [rcx + 0x1740], xmm0
xorps xmm0, xmm0
movups xmmword [rcx + 0x1600], xmm2
movups xmmword [rcx + 0x1630], xmm2
movdqa xmm2, xmmword [0x140039d70]
movups xmmword [rcx + 0x1710], xmm1
xorps xmm1, xmm1
movups xmmword [rcx + 0x17d0], xmm0
movups xmmword [rcx + 0x17f0], xmm0
movdqa xmm0, xmmword [0x140039ab0]
movups xmmword [rcx + 0x1660], xmm2
movups xmmword [rcx + 0x1670], xmm2
movups xmmword [rcx + 0x1680], xmm2
movups xmmword [rcx + 0x1690], xmm2
movups xmmword [rcx + 0x16b0], xmm2
movups xmmword [rcx + 0x16a0], xmm2
movups xmmword [rcx + 0x1750], xmm2
movups xmmword [rcx + 0x1760], xmm2
movdqa xmm2, xmmword [0x140039cb0]
movups xmmword [rcx + 0x17e0], xmm1
movdqa xmm1, xmmword [0x140039bc0]
movups xmmword [rcx + 0x1890], xmm0
movups xmmword [rcx + 0x15f0], xmm3
movups xmmword [rcx + 0x1640], xmm3
movups xmmword [rcx + 0x1770], xmm2
movups xmmword [rcx + 0x1780], xmm2
movups xmmword [rcx + 0x1790], xmm2
movups xmmword [rcx + 0x17a0], xmm2
movups xmmword [rcx + 0x17b0], xmm2
movups xmmword [rcx + 0x17c0], xmm2
movups xmmword [rcx + 0x1850], xmm2
movups xmmword [rcx + 0x1860], xmm2
movups xmmword [rcx + 0x1870], xmm2
movups xmmword [rcx + 0x1880], xmm2
movups xmmword [rcx + 0x18e0], xmm1
mov dword [rcx + 0x156c], 0x3f000000
mov dword [rcx + 0x158c], edi
mov rcx, qword [0x140040970]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret