Function at 0x406af1
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
mov dword [ebp - 0x414], ecx
mov al, byte [0x52dc4c]
mov byte [ebp - 0x208], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x52dc50]
mov byte [ebp - 0x410], cl
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.SetupApi.dll
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 8
push 0
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edx, dword [ebp - 0x414]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x414]
cmp dword [eax + 8], 0
je 0x406bf0
push str.SetupDiGetClassDevsA
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc30], eax
push str.SetupDiEnumDeviceInterfaces
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dbec], eax
push str.SetupDiGetDeviceInterfaceDetailA
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dbf0], eax
push str.SetupDiDestroyDeviceInfoList
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dbf4], eax
jmp 0x406c0b
push 0x10
push 0x4561fc
push 0x456218
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x406d2e
push 0x104
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x456220
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 8
push 0
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ecx, dword [ebp - 0x414]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x414]
cmp dword [edx + 0xc], 0
je 0x406d11
push str.HidD_GetHidGuid
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dbe8], eax
push str.HidD_SetFeature
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dbf8], eax
push str.HidD_GetFeature
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc40], eax
push str.HidD_GetPreparsedData
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc0c], eax
push str.HidD_GetAttributes
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc00], eax
push str.HidD_FreePreparsedData
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc2c], eax
push str.HidP_GetCaps
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc10], eax
jmp 0x406d29
push 0x10
push 0x4562b0
push 0x4562c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x406d2e
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret