Function at 0x1400319a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c0010]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [0x1400c4b98]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400319eb
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebp, ebp
mov qword [0x1400c4b4c], rbp
mov qword [0x1400c4b58], 1
mov qword [0x1400c4b74], rbp
mov eax, dword [0x1400c4adc]
mov dword [0x1400c4b40], eax
mov eax, dword [0x1400c4b2c]
mov dword [0x1400c4b44], eax
mov dword [0x1400c4b48], 0x15
mov dword [0x1400c4b54], ebp
mov dword [0x1400c4b70], 0x50
mov dword [0x1400c4b7c], 0x80000000
mov dword [0x1400c4b6c], 1
mov r9, qword [0x1400c4b00]
mov qword [0x1400c4b60], r9
mov dword [0x1400c4b68], 1
mov rcx, qword [0x1400c4b98]
mov rax, qword [rcx]
lea rdx, [0x1400c4ba0]
mov qword [rsp + 0x30], rdx
lea rdx, [0x1400c4b40]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rbp + 1]
call qword [rax + 0x80]
mov rdi, qword [0x1400c4ae0]
test rdi, rdi
je 0x140031aac
inc dword [rdi + 0xf4]
mov rdx, qword [0x1400c4ad0]
mov ecx, 0x5e20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140031ae5
xor edx, edx
mov rcx, rax
call fcn.1400020d0
jmp 0x140031ae8
mov rax, rbp
mov qword [0x1400c4ae0], rax
call fcn.140005110
mov rbx, qword [0x1400c4ae0]
test rdi, rdi
cmovne rbx, rdi
mov qword [0x1400c4ae0], rbx
mov qword [rbx + 0x20], rbp
mov rsi, qword [0x1400c4b00]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031c6a
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140031c6a
mov rax, qword [0x1400c4ae0]
test rax, rax
je 0x140031b4f
inc dword [rax + 0xf4]
mov rdx, qword [0x1400c4ad0]
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 0x140031b87
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 0x140031b8a
mov rdi, rbp
mov qword [rbx + 0x98], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1400c4ae0]
mov rcx, qword [rax + 0x48a0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
mov byte [rdi + 0x2d], 1
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x70], rax
mov rbx, rbp
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140031c3e
inc rbx
cmp rbx, 5
jl 0x140031c20
jmp 0x140031c6a
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 [0x1400c4ba0]
mov rbx, qword [0x1400c4ae0]
test rbx, rbx
je 0x140031c83
inc dword [rbx + 0xf4]
mov rdx, qword [0x1400c4ad0]
mov ecx, 0x28
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140031cbe
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 0x140031cc1
mov rax, rbp
mov qword [rbx + 0xa0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x90], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor ecx, ecx
call fcn.140021230
mov rax, qword [0x1400c4ae0]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x1400b557c]
lea rdx, [0x14005e210]
mov rcx, qword [rax + 0x58]
call fcn.140025a90
mov rcx, qword [0x1400c4ae0]
mov qword [rcx + 0x68], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x1400b55a8]
lea rdx, [0x140074860]
mov rcx, qword [rcx + 0x58]
call fcn.140025a90
mov qword [0x1400c2670], rax
mov rax, qword [0x1400c4ae0]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x1400b5580]
lea rdx, [0x140074860]
mov rcx, qword [rax + 0x58]
call fcn.140025a90
mov qword [0x1400c2678], rax
mov rax, qword [0x1400c4ae0]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x1400b5580]
lea rdx, [0x140095450]
mov rcx, qword [rax + 0x58]
call fcn.140025a90
mov qword [0x1400c2680], rax
mov rax, qword [0x1400c4ae0]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
movss xmm3, dword [0x1400b5584]
lea rdx, [0x14008b340]
mov rcx, qword [rax + 0x58]
call fcn.140025a90
mov qword [0x1400c2698], rax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140053720
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret