Function at 0x140031090
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
lea rdx, [0x140040970]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400310b6
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 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]
lea r8d, [rdi + 1]
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 0x14003118a
mov rcx, qword [0x140040970]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea ecx, [rdi + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x50], rbx
call fcn.1400069b0
mov rbx, qword [0x140040968]
lea rcx, [0x140040a18]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003128d
lea rcx, [0x140040a10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003128d
mov rdx, qword [0x140040928]
lea rax, str.imgui_impl_win32
mov qword [0x140040a08], rbx
or dword [rdx + 0xc], 6
mov qword [rdx + 0xd8], rax
mov qword [rdx + 0x108], rbx
mov dword [rdx + 0x3c], 9
mov dword [rdx + 0x40], 0x25
mov dword [rdx + 0x44], 0x27
mov dword [rdx + 0x48], 0x26
mov dword [rdx + 0x4c], 0x28
mov dword [rdx + 0x50], 0x21
mov dword [rdx + 0x54], 0x22
mov dword [rdx + 0x58], 0x24
mov dword [rdx + 0x5c], 0x23
mov dword [rdx + 0x60], 0x2d
mov dword [rdx + 0x64], 0x2e
mov dword [rdx + 0x68], 8
mov dword [rdx + 0x6c], 0x20
mov dword [rdx + 0x70], 0xd
mov dword [rdx + 0x74], 0x1b
mov dword [rdx + 0x78], 0x41
mov dword [rdx + 0x7c], 0x43
mov dword [rdx + 0x80], 0x56
mov dword [rdx + 0x84], 0x58
mov dword [rdx + 0x88], 0x59
mov dword [rdx + 0x8c], 0x5a
jmp 0x140031294
mov rdx, qword [0x140040928]
cmp byte [0x1400400d0], dil
mov rax, qword [0x140040978]
mov rbx, qword [rsp + 0x50]
je 0x1400312b0
mov byte [0x1400400d0], dil
lea rcx, str.imgui_impl_dx9
mov qword [0x1400409f8], rax
mov qword [rdx + 0xe0], rcx
call fcn.14001cac0
call fcn.14001cac0
mov dword [rdx + 0x1554], 0x41700000
mov dword [rdx + 0x1558], 0x41700000
mov dword [rdx + 0x155c], 0x40a00000
mov dword [rdx + 0x1584], 0x40a00000
mov dword [rdx + 0x1588], 0x40a00000
mov dword [rdx + 0x1594], 0x41400000
mov dword [rdx + 0x1598], 0x41000000
mov dword [rdx + 0x159c], 0x41000000
mov dword [rdx + 0x15a0], 0x40c00000
mov dword [rdx + 0x15ac], 0x41c80000
mov dword [rdx + 0x15b4], 0x41700000
mov dword [rdx + 0x15b8], 0x41100000
mov dword [rdx + 0x15bc], 0x40a00000
mov dword [rdx + 0x15c0], 0x40400000
mov dword [rdx + 0x15f0], 0x3ecccccd
mov dword [rdx + 0x15f4], 0x3ec7ae14
mov dword [rdx + 0x15f8], 0x3ec28f5c
mov dword [rdx + 0x15fc], 0x3f800000
mov dword [rdx + 0x1600], 0x3ecccccd
mov dword [rdx + 0x1604], 0x3ec7ae14
mov dword [rdx + 0x1608], 0x3ec28f5c
mov dword [rdx + 0x160c], 0x3f451eb8
mov dword [rdx + 0x1610], 0x3f6b851f
mov dword [rdx + 0x1614], 0x3f68f5c3
mov dword [rdx + 0x1618], 0x3f6147ae
mov dword [rdx + 0x161c], 0x3f333333
mov dword [rdx + 0x1620], 0x3f800000
mov dword [rdx + 0x1624], 0x3f7ae148
mov dword [rdx + 0x1628], 0x3f733333
mov dword [rdx + 0x162c], 0x3f147ae1
mov dword [rdx + 0x1630], 0x3f6b851f
mov dword [rdx + 0x1634], 0x3f68f5c3
mov dword [rdx + 0x1638], 0x3f6147ae
mov dword [rdx + 0x163c], 0x3f6b851f
mov dword [rdx + 0x1640], 0x3f570a3d
mov dword [rdx + 0x1644], 0x3f547ae1
mov dword [rdx + 0x1648], 0x3f4ccccd
mov dword [rdx + 0x164c], 0x3f266666
mov dword [rdx + 0x1650], 0x3f6b851f
mov dword [rdx + 0x1654], 0x3f68f5c3
mov qword [rdx + 0x1658], 0x3f6147ae
mov dword [rdx + 0x1660], 0x3f800000
mov dword [rdx + 0x1664], 0x3f7ae148
mov dword [rdx + 0x1668], 0x3f733333
mov dword [rdx + 0x166c], 0x3f800000
mov dword [rdx + 0x1670], 0x3f7d70a4
mov dword [rdx + 0x1674], 0x3f800000
mov dword [rdx + 0x1678], 0x3ecccccd
mov dword [rdx + 0x167c], 0x3f47ae14
mov dword [rdx + 0x1680], 0x3e851eb8
mov qword [rdx + 0x1684], 0x3f800000
mov dword [rdx + 0x168c], 0x3f800000
mov dword [rdx + 0x1690], 0x3f800000
mov dword [rdx + 0x1694], 0x3f7ae148
mov dword [rdx + 0x1698], 0x3f733333
mov dword [rdx + 0x169c], 0x3f800000
mov dword [rdx + 0x16b0], 0x3f800000
mov dword [rdx + 0x16b4], 0x3f7ae148
mov dword [rdx + 0x16b8], 0x3f733333
mov dword [rdx + 0x16bc], 0x3f400000
mov dword [rdx + 0x16a0], 0x3e800000
mov qword [rdx + 0x16a4], 0x3f800000
mov dword [rdx + 0x16ac], 0x3f800000
mov dword [rdx + 0x16c0], 0x3f800000
mov dword [rdx + 0x16c4], 0x3f7ae148
mov dword [rdx + 0x16c8], 0x3f733333
mov dword [rdx + 0x16cc], 0x3ef0a3d7
mov dword [rdx + 0x16d0], 0x3f800000
mov dword [rdx + 0x16d4], 0x3f7ae148
mov dword [rdx + 0x16d8], 0x3f733333
mov qword [rdx + 0x16dc], 0x3f800000
mov qword [rdx + 0x16e4], rdi
mov dword [rdx + 0x16ec], 0x3e570a3d
mov dword [rdx + 0x16f0], 0x3f666666
mov qword [rdx + 0x16f4], 0x3f68f5c3
mov dword [rdx + 0x16fc], 0x3f47ae14
mov dword [rdx + 0x1700], 0x3e800000
mov qword [rdx + 0x1704], 0x3f800000
mov dword [rdx + 0x170c], 0x3f800000
mov dword [rdx + 0x1710], 0x3e800000
mov qword [rdx + 0x1714], 0x3f800000
mov qword [rdx + 0x171c], 0x3f4ccccd
mov qword [rdx + 0x1724], rdi
mov dword [rdx + 0x172c], 0x3e0f5c29
mov dword [rdx + 0x1730], 0x3e800000
mov qword [rdx + 0x1734], 0x3f800000
mov qword [rdx + 0x173c], 0x3f800000
mov qword [rdx + 0x1744], rdi
mov dword [rdx + 0x174c], 0x3e0f5c29
mov dword [rdx + 0x1750], 0x3f7d70a4
mov dword [rdx + 0x1754], 0x3f800000
mov dword [rdx + 0x1758], 0x3e6147ae
mov dword [rdx + 0x175c], 0x3f5c28f6
mov dword [rdx + 0x1760], 0x3e800000
mov qword [rdx + 0x1764], 0x3f800000
mov dword [rdx + 0x176c], 0x3f800000
mov dword [rdx + 0x1770], 0x3e800000
mov qword [rdx + 0x1774], 0x3f800000
mov dword [rdx + 0x177c], 0x3f428f5c
mov dword [rdx + 0x1780], 0x3e800000
mov qword [rdx + 0x1784], 0x3f800000
mov dword [rdx + 0x178c], 0x3f5c28f6
mov dword [rdx + 0x1790], 0x3e800000
mov qword [rdx + 0x1794], 0x3f800000
mov qword [rdx + 0x179c], 0x3f800000
mov qword [rdx + 0x17a4], rdi
mov dword [rdx + 0x17ac], 0x3ea3d70a
mov dword [rdx + 0x17b0], 0x3e800000
mov qword [rdx + 0x17b4], 0x3f800000
mov dword [rdx + 0x17bc], 0x3f47ae14
mov dword [rdx + 0x17c0], 0x3e800000
mov qword [rdx + 0x17c4], 0x3f800000
mov qword [rdx + 0x17cc], 0x3f800000
mov qword [rdx + 0x17d4], rdi
mov dword [rdx + 0x17dc], 0x3d23d70a
mov dword [rdx + 0x17e0], 0x3e800000
mov qword [rdx + 0x17e4], 0x3f800000
mov dword [rdx + 0x17ec], 0x3f47ae14
mov dword [rdx + 0x17f0], 0x3e800000
mov qword [rdx + 0x17f4], 0x3f800000
mov dword [rdx + 0x17fc], 0x3f800000
mov dword [rdx + 0x1850], 0x3ecccccd
mov dword [rdx + 0x1854], 0x3ec7ae14
mov dword [rdx + 0x1858], 0x3ec28f5c
mov dword [rdx + 0x185c], 0x3f2147ae
mov dword [rdx + 0x1860], 0x3e800000
mov qword [rdx + 0x1864], 0x3f800000
mov dword [rdx + 0x186c], 0x3f800000
mov dword [rdx + 0x1870], 0x3ecccccd
mov dword [rdx + 0x1874], 0x3ec7ae14
mov dword [rdx + 0x1878], 0x3ec28f5c
mov dword [rdx + 0x187c], 0x3f2147ae
mov dword [rdx + 0x1880], 0x3e800000
mov qword [rdx + 0x1884], 0x3f800000
mov dword [rdx + 0x188c], 0x3f800000
mov dword [rdx + 0x1890], 0x3e800000
mov qword [rdx + 0x1894], 0x3f800000
mov dword [rdx + 0x189c], 0x3edc28f6
mov dword [rdx + 0x18e0], 0x3f800000
mov dword [rdx + 0x18e4], 0x3f7ae148
mov dword [rdx + 0x18e8], 0x3f733333
mov dword [rdx + 0x18ec], 0x3f3ae148
mov dword [rdx + 0x156c], 0x3f000000
mov dword [rdx + 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