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

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
lea rcx, [0x1402ef998]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400add71
lea rcx, [0x1402ef990]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400add71
mov qword [rsp + 0x90], rdi
call fcn.140089a80
mov rdi, rax
mov qword [0x1402ef988], rbx
or dword [rax + 4], 0xc06
lea rax, [0x1401b9e80]
mov qword [rdi + 0xd8], rax
call fcn.140089b30
mov rcx, qword [0x1402ef988]
xor ebx, ebx
mov qword [rax + 0x50], rcx
mov qword [rax + 0x48], rcx
test dword [rdi], 0x400
je 0x1400adc1a
lea rax, [0x1400af040]
mov qword [rsp + 0x80], rsi
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x50
mov dword [rsp + 0x24], 3
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
vmovdqu xmm1, xmmword [0x1401b9f70]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
lea rax, str.ImGui_Platform
mov qword [rsp + 0x68], rbx
vpxor xmm0, xmm0, xmm0
mov qword [rsp + 0x60], rax
vmovdqu xmmword [rsp + 0x40], xmm0
vmovdqu xmmword [rsp + 0x50], xmm1
call qword [sym.imp.USER32.dll_RegisterClassExA]
call fcn.140089eb0
lea rsi, [rax + 0xc0]
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x1400adaf6
mov eax, ecx
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
add eax, ecx
mov rcx, rsi
test eax, eax
cmovg edx, eax
call fcn.1400af1a0
xor r9d, r9d
mov dword [rsi], ebx
lea r8, [0x1400ae7a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [reloc.WS2_32.dll_accept], bl
call fcn.140089eb0
lea rcx, [0x1400ad560]
mov qword [rax], rcx
lea rcx, [0x1400ad6d0]
mov qword [rax + 8], rcx
lea rcx, [0x1400ae2f0]
mov qword [rax + 0x10], rcx
lea rcx, [0x1400ae140]
mov qword [rax + 0x18], rcx
lea rcx, [0x1400ad940]
mov qword [rax + 0x20], rcx
lea rcx, [0x1400ae1b0]
mov qword [rax + 0x28], rcx
lea rcx, [0x1400ad990]
mov qword [rax + 0x30], rcx
lea rcx, [0x1400ae110]
mov qword [rax + 0x38], rcx
lea rcx, [0x1400ad900]
mov qword [rax + 0x40], rcx
lea rcx, [0x1400ad920]
mov qword [rax + 0x48], rcx
lea rcx, [0x1400ae230]
mov qword [rax + 0x50], rcx
lea rcx, [0x1400ae070]
mov qword [rax + 0x58], rcx
lea rcx, [0x1400aeae0]
mov qword [rax + 0x60], rcx
lea rcx, [0x1400ad8d0]
mov qword [rax + 0x78], rcx
lea rcx, [fcn.140079130]
mov qword [rax + 0x80], rcx
lea rcx, [0x1400adfe0]
mov qword [rax + 0x88], rcx
call fcn.140089b30
mov ecx, Ordinal_27
mov rsi, rax
call fcn.14008c5a0
mov qword [rsp + 0x88], rax
mov rcx, rax
test rax, rax
je 0x1400adbfa
mov qword [rax], rbx
mov byte [rax + 8], bl
mov qword [rax + 0xc], rbx
jmp 0x1400adbfd
mov rcx, rbx
mov rax, qword [0x1402ef988]
mov qword [rcx], rax
mov byte [rcx + 8], bl
mov qword [rsi + 0x40], rcx
mov qword [rsi + 0x48], rax
mov rsi, qword [rsp + 0x80]
lea rax, str.xinput1_4.dll
mov dword [rdi + 0x34], 9
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 dword [rdi + 0x38], Ordinal_41
mov dword [rdi + 0x3c], Ordinal_41
mov dword [rdi + 0x40], Ordinal_41
mov dword [rdi + 0x44], Ordinal_41
mov dword [rdi + 0x48], reloc.WLDAP32.dll_Ordinal_33
mov dword [rdi + 0x4c], Ordinal_35
mov dword [rdi + 0x50], Ordinal_41
mov dword [rdi + 0x54], reloc.WLDAP32.dll_Ordinal_35
mov dword [rdi + 0x58], reloc.WLDAP32.dll_Ordinal_45
mov dword [rdi + 0x5c], reloc.WLDAP32.dll_Ordinal_46
mov dword [rdi + 0x60], 8
mov dword [rdi + 0x64], reloc.WLDAP32.dll_Ordinal_32
mov dword [rdi + 0x68], reloc.WS2_32.dll_listen
mov dword [rdi + 0x6c], reloc.WLDAP32.dll_Ordinal_27
mov dword [rdi + 0x70], reloc.WS2_32.dll_listen
mov dword [rdi + 0x74], 0x41
mov dword [rdi + 0x78], 0x43
mov dword [rdi + 0x7c], 0x56
mov dword [rdi + 0x80], 0x58
mov dword [rdi + 0x84], 0x59
mov dword [rdi + 0x88], 0x5a
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400add2c
inc rbx
cmp rbx, 5
jl 0x1400add00
mov rdi, qword [rsp + 0x90]
mov al, 1
add rsp, 0x70
pop rbx
ret
lea rdx, str.XInputGetCapabilities
mov qword [0x1402ef9a8], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x1402ef9b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rsp + 0x90]
mov qword [0x1402ef9b8], rax
mov al, 1
add rsp, 0x70
pop rbx
ret
xor al, al
add rsp, 0x70
pop rbx
ret