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

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
lea rcx, [0x14007b8c8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003f861
lea rcx, [0x14007b8c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003f861
mov qword [rsp + 0x90], rdi
call fcn.140017fe0
mov rdi, rax
mov qword [0x14007b8b8], rbx
or dword [rax + 4], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rdi + 0xd8], rax
call fcn.1400180c0
mov rcx, qword [0x14007b8b8]
xor ebx, ebx
mov qword [rax + 0x50], rcx
mov qword [rax + 0x48], rcx
test dword [rdi], 0x400
je 0x14003f710
lea rax, [0x140040c00]
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_GetModuleHandleW]
movdqa xmm1, xmmword [0x14006d060]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
lea rax, str.ImGui_Platform
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x60], rax
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x68], rbx
call qword [sym.imp.USER32.dll_RegisterClassExW]
call fcn.1400184c0
mov rsi, rax
mov ecx, dword [rax + 0xc4]
test ecx, ecx
jns 0x14003f5e8
mov eax, ecx
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
add eax, ecx
lea rcx, [rsi + 0xc0]
test eax, eax
cmovg edx, eax
call fcn.140040d60
xor r9d, r9d
mov dword [rsi + 0xc0], ebx
lea r8, [0x1400402a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [0x14007b1c5], bl
call fcn.1400184c0
lea rcx, [0x14003ef80]
mov qword [rax], rcx
lea rcx, [0x14003f0f0]
mov qword [rax + 8], rcx
lea rcx, [0x14003fef0]
mov qword [rax + 0x10], rcx
lea rcx, [0x14003fce0]
mov qword [rax + 0x18], rcx
lea rcx, [0x14003f3e0]
mov qword [rax + 0x20], rcx
lea rcx, [0x14003fd70]
mov qword [rax + 0x28], rcx
lea rcx, [0x14003f450]
mov qword [rax + 0x30], rcx
lea rcx, [0x14003fc90]
mov qword [rax + 0x38], rcx
lea rcx, [0x14003f360]
mov qword [rax + 0x40], rcx
lea rcx, [0x14003f3a0]
mov qword [rax + 0x48], rcx
lea rcx, [0x14003fe10]
mov qword [rax + 0x50], rcx
lea rcx, [0x14003fbb0]
mov qword [rax + 0x58], rcx
lea rcx, [0x140040690]
mov qword [rax + 0x60], rcx
lea rcx, [0x14003f310]
mov qword [rax + 0x78], rcx
lea rcx, [fcn.140003480]
mov qword [rax + 0x80], rcx
lea rcx, [0x14003fb20]
mov qword [rax + 0x88], rcx
call fcn.1400180c0
mov ecx, 0x18
mov rsi, rax
call fcn.14001b2a0
mov qword [rsp + 0x88], rax
mov rcx, rax
test rax, rax
je 0x14003f6f0
mov qword [rax], rbx
mov byte [rax + 8], bl
mov qword [rax + 0xc], rbx
jmp 0x14003f6f3
mov rcx, rbx
mov rax, qword [0x14007b8b8]
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], 0x25
mov dword [rdi + 0x3c], 0x27
mov dword [rdi + 0x40], 0x26
mov dword [rdi + 0x44], 0x28
mov dword [rdi + 0x48], 0x21
mov dword [rdi + 0x4c], 0x22
mov dword [rdi + 0x50], 0x24
mov dword [rdi + 0x54], 0x23
mov dword [rdi + 0x58], 0x2d
mov dword [rdi + 0x5c], 0x2e
mov dword [rdi + 0x60], 8
mov dword [rdi + 0x64], 0x20
mov dword [rdi + 0x68], 0xd
mov dword [rdi + 0x6c], 0x1b
mov dword [rdi + 0x70], 0xd
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
mov rcx, qword [rsp + rbx*8 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x14003f81c
inc rbx
cmp rbx, 5
jl 0x14003f7f0
mov rdi, qword [rsp + 0x90]
mov al, 1
add rsp, 0x70
pop rbx
ret
lea rdx, str.XInputGetCapabilities
mov qword [0x14007b8d8], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x14007b8e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rsp + 0x90]
mov qword [0x14007b8e8], rax
mov al, 1
add rsp, 0x70
pop rbx
ret
xor al, al
add rsp, 0x70
pop rbx
ret