Function at 0x140048a50
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 [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [0x14007fcd8]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140048a9b
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebp, ebp
mov qword [0x14007fc4c], rbp
mov qword [0x14007fc58], 1
mov qword [0x14007fc74], rbp
mov dword [0x14007fc68], 1
mov r9, qword [0x14007fcc8]
mov qword [0x14007fc60], r9
mov dword [0x14007fc54], ebp
mov dword [0x14007fc48], 0x15
mov eax, dword [0x14007fe8c]
mov dword [0x14007fc40], eax
mov eax, dword [0x14007fe94]
mov dword [0x14007fc44], eax
mov dword [0x14007fc6c], 1
mov dword [0x14007fc70], 0x50
mov dword [0x14007fc7c], ebp
mov rcx, qword [0x14007fcd8]
mov rax, qword [rcx]
lea rdx, [0x14007fc38]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbp
lea rdx, [0x14007fc40]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
lea r8d, [rbp + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x140048b66
mov rcx, qword [0x14007fcd8]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea ecx, [rbp + 4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x14007fc20]
test rbx, rbx
je 0x140048b78
inc dword [rbx + 0xf4]
mov rdx, qword [0x14007fc10]
mov ecx, 0x5e28
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 0x140048bb1
xor edx, edx
mov rcx, rax
call fcn.140012540
jmp 0x140048bb4
mov rax, rbp
mov qword [0x14007fc20], rax
call fcn.140015aa0
mov rdi, qword [0x14007fc20]
test rbx, rbx
cmovne rdi, rbx
mov qword [0x14007fc20], rdi
mov rsi, qword [0x14007fcc8]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140048d2c
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140048d2c
mov rax, qword [0x14007fc20]
test rax, rax
je 0x140048c17
inc dword [rax + 0xf4]
mov rdx, qword [0x14007fc10]
mov ecx, 0x48
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140048c4f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
jmp 0x140048c52
mov rbx, rbp
mov qword [rdi + 0x98], rbx
lea rax, [0x140067c6f]
mov qword [rdi + 0x88], rax
or dword [rdi + 0xc], 6
mov qword [rbx], rsi
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x14007fc20]
mov rcx, qword [rax + 0x48a8]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
mov byte [rbx + 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 rdi, rbp
mov rcx, qword [rsp + rdi*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140048d00
inc rdi
cmp rdi, 5
jl 0x140048ce2
jmp 0x140048d2c
mov qword [rbx + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
mov rdi, qword [0x14007fc38]
mov rbx, qword [0x14007fc20]
test rbx, rbx
je 0x140048d45
inc dword [rbx + 0xf4]
mov rdx, qword [0x14007fc10]
mov ecx, 0x28
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140048d80
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 0x140048d83
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]
mov rax, qword [0x14007fc20]
mov qword [rax + 0x20], rbp
mov dword [rax + 0x37e4], 0x3f800000
mov dword [rax + 0x3818], 0x3f800000
mov dword [rax + 0x37f0], 0x3f000000
mov dword [rax + 0x37f4], 0x3f000000
xorps xmm0, xmm0
movups xmmword [rax + 0x390c], xmm0
movaps xmm1, xmmword [0x140074cf0]
movups xmmword [rax + 0x38fc], xmm1
movaps xmm0, xmmword [0x140074d00]
movups xmmword [rax + 0x394c], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x395c], xmm0
movups xmmword [rax + 0x38cc], xmm0
movaps xmm1, xmmword [0x140074cd0]
movups xmmword [rax + 0x391c], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x393c], xmm1
movups xmmword [rax + 0x392c], xmm1
movups xmmword [rax + 0x39fc], xmm1
movups xmmword [rax + 0x3a1c], xmm1
movups xmmword [rax + 0x3a0c], xmm1
movaps xmm1, xmmword [0x140074d10]
movups xmmword [rax + 0x39dc], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x39ec], xmm1
movups xmmword [rax + 0x39cc], xmm1
movups xmmword [rax + 0x3a2c], xmm1
xorps xmm1, xmm1
movups xmmword [rax + 0x3a4c], xmm1
movups xmmword [rax + 0x3a3c], xmm0
movaps xmm1, xmmword [0x140074d00]
movups xmmword [rax + 0x38ec], xmm1
mov rcx, qword [0x14007fcd8]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140064080
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