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

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
lea rcx, [0x140317898]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400d97f1
lea rcx, [0x140317890]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400d97f1
mov qword [rsp + 0x90], rdi
call fcn.1400b5500
mov rdi, rax
mov qword [0x140317888], rbx
or dword [rax + 4], 0xc06
lea rax, [0x1401e5d40]
mov qword [rdi + 0xd8], rax
call fcn.1400b55b0
mov rcx, qword [0x140317888]
xor ebx, ebx
mov qword [rax + 0x50], rcx
mov qword [rax + 0x48], rcx
test dword [rdi], 0x400
je 0x1400d969a
lea rax, [0x1400daac0]
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 [0x1401e5e30]
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.1400b5930
lea rsi, [rax + 0xc0]
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x1400d9576
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.1400dac20
xor r9d, r9d
mov dword [rsi], ebx
lea r8, [0x1400da220]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [reloc.WS2_32.dll_accept], bl
call fcn.1400b5930
lea rcx, [0x1400d8fe0]
mov qword [rax], rcx
lea rcx, [0x1400d9150]
mov qword [rax + 8], rcx
lea rcx, [0x1400d9d70]
mov qword [rax + 0x10], rcx
lea rcx, [0x1400d9bc0]
mov qword [rax + 0x18], rcx
lea rcx, [0x1400d93c0]
mov qword [rax + 0x20], rcx
lea rcx, [0x1400d9c30]
mov qword [rax + 0x28], rcx
lea rcx, [0x1400d9410]
mov qword [rax + 0x30], rcx
lea rcx, [0x1400d9b90]
mov qword [rax + 0x38], rcx
lea rcx, [0x1400d9380]
mov qword [rax + 0x40], rcx
lea rcx, [0x1400d93a0]
mov qword [rax + 0x48], rcx
lea rcx, [0x1400d9cb0]
mov qword [rax + 0x50], rcx
lea rcx, [0x1400d9af0]
mov qword [rax + 0x58], rcx
lea rcx, [0x1400da560]
mov qword [rax + 0x60], rcx
lea rcx, [0x1400d9350]
mov qword [rax + 0x78], rcx
lea rcx, [fcn.1400a4bb0]
mov qword [rax + 0x80], rcx
lea rcx, [0x1400d9a60]
mov qword [rax + 0x88], rcx
call fcn.1400b55b0
mov ecx, Ordinal_27
mov rsi, rax
call fcn.1400b8020
mov qword [rsp + 0x88], rax
mov rcx, rax
test rax, rax
je 0x1400d967a
mov qword [rax], rbx
mov byte [rax + 8], bl
mov qword [rax + 0xc], rbx
jmp 0x1400d967d
mov rcx, rbx
mov rax, qword [0x140317888]
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 0x1400d97ac
inc rbx
cmp rbx, 5
jl 0x1400d9780
mov rdi, qword [rsp + 0x90]
mov al, 1
add rsp, 0x70
pop rbx
ret
lea rdx, str.XInputGetCapabilities
mov qword [0x1403178a8], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x1403178b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rsp + 0x90]
mov qword [0x1403178b8], rax
mov al, 1
add rsp, 0x70
pop rbx
ret
xor al, al
add rsp, 0x70
pop rbx
ret