Function at 0x140002cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140058040]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rbx, qword [0x1400fccc8]
test rbx, rbx
je 0x140002d36
inc dword [rbx + 0xf4]
mov ecx, 0x5598
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x90], rax
lea rcx, [rsp + 0x20]
mov qword [rbp + 0x88], rcx
mov qword [rbp - 0x40], rax
xor r15d, r15d
test rax, rax
je 0x140002d6c
xor edx, edx
mov rcx, rax
call fcn.14000ffc0
jmp 0x140002d6f
mov rax, r15
mov qword [0x1400fccc8], rax
call fcn.140017520
test rbx, rbx
je 0x140002d89
mov qword [0x1400fccc8], rbx
jmp 0x140002d90
mov rbx, qword [0x1400fccc8]
mov qword [rbx + 0x20], r15
xorps xmm0, xmm0
movups xmmword [rbx + 0x3908], xmm0
movdqa xmm1, xmmword [0x14004fbb0]
movups xmmword [rbx + 0x38f8], xmm1
movdqa xmm2, xmmword [0x14004fbc0]
movups xmmword [rbx + 0x3948], xmm2
movups xmmword [rbx + 0x3958], xmm2
movups xmmword [rbx + 0x38c8], xmm2
movdqa xmm0, xmmword [0x14004fba0]
movups xmmword [rbx + 0x3918], xmm0
movups xmmword [rbx + 0x3938], xmm0
movups xmmword [rbx + 0x3928], xmm0
movups xmmword [rbx + 0x39f8], xmm0
movups xmmword [rbx + 0x3a18], xmm0
movups xmmword [rbx + 0x3a08], xmm0
movdqa xmm1, xmmword [0x14004fbd0]
movups xmmword [rbx + 0x39d8], xmm1
movups xmmword [rbx + 0x39e8], xmm1
movups xmmword [rbx + 0x39c8], xmm1
movups xmmword [rbx + 0x3a28], xmm1
xorps xmm0, xmm0
movups xmmword [rbx + 0x3a48], xmm0
movups xmmword [rbx + 0x3a38], xmm1
movups xmmword [rbx + 0x38e8], xmm2
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov r14d, 0xffff
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
lea rdi, [0x140081ef0]
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x6f7dc
mov dword [rbp - 0x1c], 0x41b00000
lea rsi, [0x14004f398]
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x6f7dc
mov dword [rbp - 0x1c], 0x41b00000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x6f7dc
mov dword [rbp - 0x1c], 0x42200000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
lea rax, [0x1400580d0]
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x29e1c
mov dword [rbp - 0x1c], 0x42200000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
lea rdi, [0x1400f16d0]
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x1b14
mov dword [rbp - 0x1c], 0x41c00000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
mov qword [0x1400fcbf8], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x1b14
mov dword [rbp - 0x1c], 0x41980000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
mov qword [0x1400fcb80], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x1b14
mov dword [rbp - 0x1c], 0x42040000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
mov qword [0x1400fcc40], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x30], xmm2
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x3c], 1
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rbp - 0x80], 0x3f800000
mov word [rbp - 0x7c], r14w
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm2
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm2
movaps xmmword [rbp + 0x40], xmm2
movsd xmm0, qword [rbp - 0x50]
movsd qword [rbp + 0x50], xmm0
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], 0x1b14
mov dword [rbp - 0x1c], 0x42200000
mov qword [rbp + 8], rsi
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x58]
call fcn.140035050
mov rsi, qword [0x1400fcc00]
mov rdi, qword [0x1400fccc8]
lea rcx, [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400034ea
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400034ea
mov rax, qword [0x1400fccc8]
test rax, rax
je 0x1400033e1
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000340e
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 0x140003411
mov rbx, r15
mov qword [rdi + 0x98], rbx
lea rax, str.imgui_impl_win32
mov qword [rdi + 0x88], rax
or dword [rdi + 0xc], 6
mov qword [rbx], rsi
mov byte [rbx + 0x2d], 1
mov rax, qword [rbp + 0x88]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0x90]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x1400fccc8]
mov rcx, qword [rax + 0x40a0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x60], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x68], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x70], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x78], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x80], rax
mov rdi, r15
mov rcx, qword [rbp + rdi*8 + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400034be
inc rdi
cmp rdi, 5
jl 0x1400034a0
jmp 0x1400034ea
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 [0x1400fcb78]
mov rbx, qword [0x1400fccc8]
test rbx, rbx
je 0x140003503
inc dword [rbx + 0xf4]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140003532
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140003535
mov rax, r15
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 rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1400453f0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret