Function at 0x14006f930
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140092010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, rdx
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x14006f979
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbx + 0x10]
xor r15d, r15d
mov qword [rbx + 0x1c], r15
mov qword [rbx + 0x28], 1
mov qword [rbx + 0x44], r15
mov dword [rbx + 0x38], 1
mov qword [rbx + 0x30], rbp
mov dword [rbx + 0x24], r15d
mov dword [rbx + 0x18], 0x15
mov eax, dword [rbx + 0xe0]
mov dword [rdx], eax
mov eax, dword [rbx + 0xe4]
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x3c], 1
mov dword [rbx + 0x40], 0x50
mov dword [rbx + 0x4c], 0x80000000
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r14, [rbx + 8]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rbp
xor edx, edx
lea r8d, [r15 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x14006fa14
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea ecx, [r15 + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x140092cf0]
test rbx, rbx
je 0x14006fa26
inc dword [rbx + 0xec]
mov rdx, qword [0x140092ce0]
mov ecx, 0x5678
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14006fa62
xor edx, edx
mov rcx, rax
call fcn.14003c320
jmp 0x14006fa65
mov rax, r15
mov qword [0x140092cf0], rax
call fcn.140042380
mov rsi, qword [0x140092cf0]
test rbx, rbx
cmovne rsi, rbx
mov qword [0x140092cf0], rsi
mov qword [rsi + 0x20], r15
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14006fbde
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14006fbde
mov rax, qword [0x140092cf0]
test rax, rax
je 0x14006fac8
inc dword [rax + 0xec]
mov rdx, qword [0x140092ce0]
mov ecx, 0x48
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14006fb00
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x14006fb03
mov rdi, r15
mov qword [rsi + 0x90], rdi
lea rax, [rsp + 0x50]
mov qword [rsi + 0x80], rax
or dword [rsi + 0xc], 6
mov qword [rdi], rbp
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x140092cf0]
mov rcx, qword [rax + 0x40b0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x78], rax
mov rbx, r15
mov rcx, qword [rsp + rbx*8 + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14006fbb2
inc rbx
cmp rbx, 5
jl 0x14006fb94
jmp 0x14006fbde
mov qword [rdi + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [r14]
mov rbx, qword [0x140092cf0]
test rbx, rbx
je 0x14006fbf3
inc dword [rbx + 0xec]
mov rdx, qword [0x140092ce0]
mov ecx, 0x28
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14006fc2e
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14006fc31
mov rax, r15
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400724c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret