Function at 0x140005920
Capabilities:
Terminate process

Disassembly:
push rbx
push rdi
sub rsp, 0x48
lea rdx, [0x140047770]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140005949
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edi, edi
mov qword [0x14004778c], rdi
mov qword [0x140047798], 1
mov qword [0x1400477b4], rdi
mov dword [0x1400477bc], edi
mov eax, dword [0x14004777c]
mov dword [0x140047780], eax
mov dword [0x140047784], eax
mov dword [0x140047788], 0x15
mov dword [0x140047794], edi
mov dword [0x1400477b0], 0x50
mov dword [0x1400477ac], 1
mov r9, qword [0x140047940]
mov qword [0x1400477a0], r9
mov dword [0x1400477a8], 1
mov rcx, qword [0x140047770]
mov rax, qword [rcx]
lea rdx, [0x140047938]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140047780]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rdi + 1]
call qword [rax + 0x80]
mov rbx, qword [0x140047850]
test rbx, rbx
je 0x140005a00
inc dword [rbx + 0xf4]
mov ecx, 0x5dd0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140005a30
xor edx, edx
mov rcx, rax
call fcn.14000c700
jmp 0x140005a33
mov rax, rdi
mov qword [0x140047850], rax
call fcn.14000f480
mov rax, qword [0x140047850]
test rbx, rbx
cmovne rax, rbx
mov qword [0x140047850], rax
mov rbx, qword [0x140047940]
lea rcx, [0x140047998]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140005b80
lea rcx, [0x140047990]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140005b80
mov qword [0x140047988], rbx
mov rcx, qword [0x140047850]
or dword [rcx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rcx + 0x88], rax
mov qword [rcx + 0xd0], rbx
mov dword [rcx + 0x900], 9
mov dword [rcx + 0x904], 0x25
mov dword [rcx + 0x908], 0x27
mov dword [rcx + 0x90c], 0x26
mov dword [rcx + 0x910], 0x28
mov dword [rcx + 0x914], 0x21
mov dword [rcx + 0x918], 0x22
mov dword [rcx + 0x91c], 0x24
mov dword [rcx + 0x920], 0x23
mov dword [rcx + 0x924], 0x2d
mov dword [rcx + 0x928], 0x2e
mov dword [rcx + 0x92c], 8
mov dword [rcx + 0x930], 0x20
mov dword [rcx + 0x934], 0xd
mov dword [rcx + 0x938], 0x1b
mov dword [rcx + 0x988], 0x41
mov dword [rcx + 0x990], 0x43
mov dword [rcx + 0x9dc], 0x56
mov dword [rcx + 0x9e4], 0x58
mov dword [rcx + 0x9e8], 0x59
mov dword [rcx + 0x9ec], 0x5a
jmp 0x140005b87
mov rcx, qword [0x140047850]
mov rax, qword [0x140047938]
lea rdx, str.imgui_impl_dx9
mov qword [rcx + 0x90], rdx
mov qword [0x140047978], rax
xor ecx, ecx
call fcn.14002a9e0
mov rax, qword [0x140047850]
mov dword [rax + 0x37f4], edi
movaps xmm0, xmmword [0x140040c40]
movups xmmword [rax + 0x38a8], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x38b8], xmm0
movaps xmm0, xmmword [0x140040aa0]
movups xmmword [rax + 0x38c8], xmm0
movaps xmm1, xmmword [0x140040ac0]
movups xmmword [rax + 0x3948], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x3958], xmm1
movups xmmword [rax + 0x3968], xmm1
movups xmmword [rax + 0x39f8], xmm1
movaps xmm1, xmmword [0x1400408d0]
movups xmmword [rax + 0x3a08], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x3a18], xmm1
movaps xmm1, xmmword [0x140040ac0]
movups xmmword [rax + 0x3918], xmm1
movaps xmm0, xmmword [0x140040c40]
movups xmmword [rax + 0x39c8], xmm0
movups xmmword [rax + 0x3928], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x3938], xmm1
mov dword [rax + 0x3800], 0x3f000000
mov rcx, qword [0x140047770]
mov rax, qword [rcx]
add rsp, 0x48
pop rdi
pop rbx
jmp qword [rax + 0x10]