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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, rcx
mov rax, qword [0x1800a3fc8]
test rax, rax
je 0x180002161
inc dword [rax + 0x3b4]
mov ecx, 0x3f48
call fcn.180062e58
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000218f
xor edx, edx
mov rcx, rax
call fcn.180011610
nop
cmp qword [0x1800a3fc8], 0
jne 0x1800021a0
mov qword [0x1800a3fc8], rax
mov rcx, rax
call fcn.180017c90
mov rbp, qword [0x1800a3fc8]
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
xor ecx, ecx
call fcn.18002e5a0
mov rsi, qword [0x1800a3cf8]
mov rbx, qword [0x1800a3fc8]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800023ab
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800023ab
mov rax, qword [0x1800a3fc8]
test rax, rax
je 0x18000220c
inc dword [rax + 0x3b4]
mov ecx, 0x48
call fcn.180062e58
mov rdi, rax
test rax, rax
je 0x180002238
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 0x18000223a
xor edi, edi
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 + 0x68]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x70]
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], recv
mov dword [rbx + 0x74], 0x1b
mov dword [rbx + 0x78], recv
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 + 0x40], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rcx, qword [rsp + rbx*8 + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18000237f
inc rbx
cmp rbx, 5
jl 0x180002361
jmp 0x1800023ab
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 rbx, qword [0x1800a3fc8]
test rbx, rbx
je 0x1800023bd
inc dword [rbx + 0x3b4]
mov ecx, 0x28
call fcn.180062e58
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1800023ef
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
mov qword [rbx + 0xf0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0xe0], rcx
or dword [rbx + 0xc], 8
mov qword [rax], r14
mov rax, qword [r14]
mov rcx, r14
call qword [rax + htons]
lea rbx, [0x1800a3fd0]
mov rcx, rbx
call fcn.180007ae0
mov rcx, qword [rbp + 0xa8]
mov rax, qword [0x1800a3fd0]
movsxd rdx, dword [rax + 4]
lea rax, [0x180090f38]
mov qword [rsp + 0x20], rax
test byte [rdx + rbx + 0x10], 6
je 0x180002459
movss xmm2, dword [0x180091760]
lea rdx, str.c:WindowsFonts_simsun.ttc
jmp 0x180002468
movss xmm2, dword [0x18009176c]
lea rdx, str.c:WindowsFontsmsyh.ttc
call fcn.180034680
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18004f5c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret