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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [0x14004a9e8]
test rax, rax
je 0x1400014a5
inc dword [rax + 0x3b0]
mov ecx, 0x3fa8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebp, ebp
test rax, rax
je 0x1400014c3
xor edx, edx
mov rcx, rax
call fcn.140004dd0
jmp 0x1400014c6
mov rax, rbp
cmp qword [0x14004a9e8], rbp
jne 0x1400014d6
mov qword [0x14004a9e8], rax
mov rcx, rax
call fcn.14000b640
mov rbx, qword [0x14004a9e8]
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x1570], 0x3f800000
mov dword [rbx + 0x1574], 0x3dcccccd
mov dword [rbx + 0x1578], 0x41000000
mov dword [rbx + 0x157c], 0x41000000
mov qword [rbx + 0x1580], 0x41200000
mov dword [rbx + 0x1588], 0x41f00000
mov dword [rbx + 0x158c], 0x41f00000
mov dword [rbx + 0x1590], 0x3f000000
mov dword [rbx + 0x1594], 0x3f000000
mov dword [rbx + 0x1598], 1
mov dword [rbx + 0x159c], 0x40a00000
mov dword [rbx + 0x15a0], 0x3f800000
mov qword [rbx + 0x15a4], 0x41200000
mov dword [rbx + 0x15ac], 0x40a00000
mov dword [rbx + 0x15b0], 0x40600000
mov qword [rbx + 0x15b4], 0x400ccccd
mov dword [rbx + 0x15bc], 0x40a00000
mov dword [rbx + 0x15c0], 0x40800000
mov dword [rbx + 0x15c4], 0x40a00000
mov dword [rbx + 0x15c8], 0x40a00000
mov dword [rbx + 0x15cc], 0x40800000
mov dword [rbx + 0x15d0], 0x40000000
mov dword [rbx + 0x15dc], 0x40a00000
mov dword [rbx + 0x15e0], 0x40a00000
mov dword [rbx + 0x15e4], 0x41700000
mov dword [rbx + 0x15e8], 0x41100000
mov dword [rbx + 0x15ec], 0x41700000
mov dword [rbx + 0x15f0], 0x40a00000
mov qword [rbx + 0x15f8], 0x40466668
mov dword [rbx + 0x1600], ebp
mov dword [rbx + 0x1604], 1
mov dword [rbx + 0x1608], 0x3f000000
mov qword [rbx + 0x160c], 0x3f000000
mov dword [rbx + 0x1614], ebp
movdqa xmm0, xmmword [0x140042600]
movups xmmword [rbx + 0x1638], xmm0
movdqa xmm1, xmmword [0x140042330]
movups xmmword [rbx + 0x1648], xmm1
movdqa xmm3, xmmword [0x1400424c0]
movups xmmword [rbx + 0x1658], xmm3
movdqa xmm0, xmmword [0x1400421f0]
movups xmmword [rbx + 0x1668], xmm0
movups xmmword [rbx + 0x1678], xmm3
movdqa xmm0, xmmword [0x1400423e0]
movups xmmword [rbx + 0x1688], xmm0
xorps xmm0, xmm0
movups xmmword [rbx + 0x1698], xmm0
movdqa xmm2, xmmword [0x1400424e0]
movups xmmword [rbx + 0x16a8], xmm2
movdqa xmm0, xmmword [0x1400423a0]
movups xmmword [rbx + 0x16b8], xmm0
movdqa xmm4, xmmword [0x1400423b0]
movups xmmword [rbx + 0x16c8], xmm4
movups xmmword [rbx + 0x16d8], xmm3
movups xmmword [rbx + 0x16e8], xmm3
movdqa xmm0, xmmword [0x140042230]
movups xmmword [rbx + 0x16f8], xmm0
xorps xmm0, xmm0
movups xmmword [rbx + 0x1708], xmm0
movdqa xmm1, xmmword [0x140042220]
movups xmmword [rbx + 0x1718], xmm1
movups xmmword [rbx + 0x1728], xmm2
movdqa xmm0, xmmword [0x140042510]
movups xmmword [rbx + 0x1738], xmm0
movdqa xmm2, xmmword [0x140042530]
movups xmmword [rbx + 0x1748], xmm2
movups xmmword [rbx + 0x1758], xmm2
movups xmmword [rbx + 0x1768], xmm4
movdqa xmm0, xmmword [0x1400423d0]
movups xmmword [rbx + 0x1778], xmm0
movups xmmword [rbx + 0x1788], xmm4
movdqa xmm3, xmmword [0x1400423c0]
movups xmmword [rbx + 0x1798], xmm3
movups xmmword [rbx + 0x17a8], xmm0
movups xmmword [rbx + 0x17b8], xmm4
movups xmmword [rbx + 0x17c8], xmm3
movups xmmword [rbx + 0x17d8], xmm0
movups xmmword [rbx + 0x17e8], xmm4
movups xmmword [rbx + 0x17f8], xmm3
movups xmmword [rbx + 0x1808], xmm0
movups xmmword [rbx + 0x1818], xmm4
movups xmmword [rbx + 0x1828], xmm3
movups xmmword [rbx + 0x1838], xmm0
movups xmmword [rbx + 0x1848], xmm4
movups xmmword [rbx + 0x1858], xmm3
movups xmmword [rbx + 0x1868], xmm0
movdqa xmm0, xmmword [0x140042270]
movups xmmword [rbx + 0x1878], xmm0
movdqa xmm1, xmmword [0x140042240]
movups xmmword [rbx + 0x1888], xmm1
movups xmmword [rbx + 0x1898], xmm2
movups xmmword [rbx + 0x18a8], xmm3
movups xmmword [rbx + 0x18b8], xmm4
movups xmmword [rbx + 0x18c8], xmm3
movdqa xmm0, xmmword [0x1400424f0]
movups xmmword [rbx + 0x18d8], xmm0
movdqa xmm1, xmmword [0x140042390]
movups xmmword [rbx + 0x18e8], xmm1
movdqa xmm0, xmmword [0x1400422f0]
movups xmmword [rbx + 0x18f8], xmm0
xorps xmm0, xmm0
movups xmmword [rbx + 0x1908], xmm0
movdqa xmm1, xmmword [0x1400422b0]
movups xmmword [rbx + 0x1918], xmm1
movups xmmword [rbx + 0x1928], xmm3
movdqa xmm0, xmmword [0x140042430]
movups xmmword [rbx + 0x1938], xmm0
movdqa xmm1, xmmword [0x140042470]
movups xmmword [rbx + 0x1948], xmm1
movdqa xmm0, xmmword [0x140042400]
movups xmmword [rbx + 0x1958], xmm0
movdqa xmm1, xmmword [0x1400422d0]
movups xmmword [rbx + 0x1968], xmm1
movdqa xmm0, xmmword [0x140042310]
movups xmmword [rbx + 0x1978], xmm0
mov rsi, qword [0x14004a920]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140001a5f
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140001a5f
mov rax, qword [0x14004a9e8]
test rax, rax
je 0x1400018bd
inc dword [rax + 0x3b0]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400018ea
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 0x1400018ed
mov rdi, rbp
mov qword [rbx + 0xe8], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xd8], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov qword [rbx + 0x120], rsi
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x40], 0x25
mov dword [rbx + 0x44], 0x27
mov dword [rbx + 0x48], 0x26
mov dword [rbx + 0x4c], 0x28
mov dword [rbx + 0x50], 0x21
mov dword [rbx + 0x54], 0x22
mov dword [rbx + 0x58], 0x24
mov dword [rbx + 0x5c], 0x23
mov dword [rbx + 0x60], 0x2d
mov dword [rbx + 0x64], 0x2e
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], 0x20
mov dword [rbx + 0x70], 0xd
mov dword [rbx + 0x74], 0x1b
mov dword [rbx + 0x78], 0xd
mov dword [rbx + 0x7c], 0x41
mov dword [rbx + 0x80], 0x43
mov dword [rbx + 0x84], 0x56
mov dword [rbx + 0x88], 0x58
mov dword [rbx + 0x8c], 0x59
mov dword [rbx + 0x90], 0x5a
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x20], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x40], rax
mov rbx, rbp
mov rcx, qword [rsp + rbx*8 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140001a33
inc rbx
cmp rbx, 5
jl 0x140001a15
jmp 0x140001a5f
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 [0x14004a928]
mov rbx, qword [0x14004a9e8]
test rbx, rbx
je 0x140001a78
inc dword [rbx + 0x3b0]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001aa7
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140001aaa
mov rax, rbp
mov qword [rbx + 0xf0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0xe0], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003b6c0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret