Function at 0x140031ad0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
lea rdx, [0x140041970]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140031af6
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [0x1400419c4]
lea rdx, [0x140041978]
mov rcx, qword [0x140041970]
mov r8d, 1
mov r9, qword [0x140041968]
mov qword [rsp + 0x38], rdx
lea rdx, [0x140041980]
mov dword [0x140041980], eax
mov eax, dword [0x1400419c0]
mov qword [0x140041998], 1
mov dword [0x1400419a8], 1
mov qword [0x1400419a0], r9
mov dword [0x140041988], 0x15
mov dword [0x140041984], eax
mov dword [0x1400419ac], 1
mov dword [0x1400419b0], 0x50
mov dword [0x1400419bc], 0x80000000
mov qword [rsp + 0x40], rdi
xor edi, edi
mov qword [0x14004198c], rdi
mov qword [0x1400419b4], rdi
mov dword [0x140041994], 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 0x140031bce
mov rcx, qword [0x140041970]
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.140007bd0
mov rbx, qword [0x140041968]
lea rcx, [0x140041a18]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031cd1
lea rcx, [0x140041a10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140031cd1
mov rcx, qword [0x140041928]
lea rax, str.imgui_impl_win32
mov qword [0x140041a08], 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 0x140031cd8
mov rcx, qword [0x140041928]
cmp byte [0x1400410d0], dil
mov rax, qword [0x140041978]
mov rbx, qword [rsp + 0x50]
je 0x140031cf4
mov byte [0x1400410d0], dil
lea rdx, str.imgui_impl_dx9
mov qword [0x1400419f8], rax
mov qword [rcx + 0xe0], rdx
call fcn.14001d6f0
call fcn.14001d6f0
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 [0x14003acf0]
movdqa xmm0, xmmword [0x14003ad20]
movdqa xmm1, xmmword [0x14003ad30]
movdqa xmm3, xmmword [0x14003aea0]
movups xmmword [rcx + 0x1610], xmm0
movdqa xmm0, xmmword [0x14003a940]
movups xmmword [rcx + 0x1650], xmm0
movdqa xmm0, xmmword [0x14003adb0]
movups xmmword [rcx + 0x16c0], xmm0
movdqa xmm0, xmmword [0x14003aa00]
movups xmmword [rcx + 0x16e0], xmm0
movdqa xmm0, xmmword [0x14003ad10]
movups xmmword [rcx + 0x1620], xmm1
movdqa xmm1, xmmword [0x14003ad40]
movups xmmword [rcx + 0x1700], xmm0
movdqa xmm0, xmmword [0x14003ab20]
movups xmmword [rcx + 0x16d0], xmm1
movdqa xmm1, xmmword [0x14003ae10]
movups xmmword [rcx + 0x1720], xmm0
movups xmmword [rcx + 0x1730], xmm0
movdqa xmm0, xmmword [0x14003ad50]
movups xmmword [rcx + 0x16f0], xmm1
movdqa xmm1, xmmword [0x14003ae00]
movups xmmword [rcx + 0x1740], xmm0
xorps xmm0, xmm0
movups xmmword [rcx + 0x1600], xmm2
movups xmmword [rcx + 0x1630], xmm2
movdqa xmm2, xmmword [0x14003ad60]
movups xmmword [rcx + 0x1710], xmm1
xorps xmm1, xmm1
movups xmmword [rcx + 0x17d0], xmm0
movups xmmword [rcx + 0x17f0], xmm0
movdqa xmm0, xmmword [0x14003aaa0]
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 [0x14003aca0]
movups xmmword [rcx + 0x17e0], xmm1
movdqa xmm1, xmmword [0x14003abb0]
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 [0x140041970]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret