Function at 0x14003d700
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
lea rdx, [0x140051990]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14003d726
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [0x140051a2c]
lea rdx, [0x1400519d8]
mov rcx, qword [0x140051990]
xor r10d, r10d
mov r9, qword [0x140051988]
mov r8d, 1
mov qword [rsp + 0x38], rdx
lea rdx, [0x1400519e0]
mov dword [0x1400519e0], eax
mov eax, dword [0x140051a28]
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [0x1400519ec], r10
mov qword [0x1400519f8], 1
mov qword [0x140051a14], r10
mov dword [0x140051a08], 1
mov qword [0x140051a00], r9
mov dword [0x1400519f4], r10d
mov dword [0x1400519e8], 0x15
mov dword [0x1400519e4], eax
mov dword [0x140051a0c], 1
mov dword [0x140051a10], 0x50
mov dword [0x140051a1c], r10d
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0xa0]
test eax, eax
jns 0x14003d7f8
mov rcx, qword [0x140051990]
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 + 0x40], rbx
call fcn.1400056a0
mov rbx, qword [0x140051988]
lea rcx, [0x140051a80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003d8fb
lea rcx, [0x140051a78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003d8fb
mov rcx, qword [0x140051910]
lea rax, str.imgui_impl_win32
mov qword [0x140051a70], 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 0x14003d902
mov rcx, qword [0x140051910]
cmp byte [0x1400510c0], 0
mov rax, qword [0x1400519d8]
mov rbx, qword [rsp + 0x40]
je 0x14003d91e
mov byte [0x1400510c0], 0
lea rdx, str.imgui_impl_dx9
mov qword [0x140051a60], rax
mov qword [rcx + 0xe0], rdx
call fcn.14001c370
movdqa xmm0, xmmword [0x14004a2f0]
movdqa xmm2, xmmword [0x14004a2e0]
movdqa xmm3, xmmword [0x14004a2d0]
movdqa xmm1, xmmword [0x14004a300]
movups xmmword [rcx + 0x16a0], xmm0
movups xmmword [rcx + 0x1750], xmm0
movups xmmword [rcx + 0x1810], xmm0
movdqa xmm0, xmmword [0x14004a460]
movups xmmword [rcx + 0x15f0], xmm0
movups xmmword [rcx + 0x1610], xmm3
movups xmmword [rcx + 0x16c0], xmm3
movups xmmword [rcx + 0x1690], xmm1
movups xmmword [rcx + 0x16b0], xmm2
movups xmmword [rcx + 0x1740], xmm1
movups xmmword [rcx + 0x1760], xmm2
movups xmmword [rcx + 0x1800], xmm1
movups xmmword [rcx + 0x1820], xmm2
movups xmmword [rcx + 0x1830], xmm3
movups xmmword [rcx + 0x1840], xmm2
mov rcx, qword [0x140051990]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
add rsp, 0x48
ret