Function at 0x406a17
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 [0x52dc0c]
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 [0x52dc10]
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 0x406b16
push str.SetupDiGetClassDevsA
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dbf0], 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 [0x52dbac], 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 [0x52dbb0], 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 [0x52dbb4], eax
jmp 0x406b31
push 0x10
push 0x456258
push 0x456274
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x406c54
push 0x104
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x45627c
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 0x406c37
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 [0x52dba8], 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 [0x52dbb8], 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 [0x52dc00], 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 [0x52dbcc], 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 [0x52dbc0], 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 [0x52dbec], 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 [0x52dbd0], eax
jmp 0x406c4f
push 0x10
push 0x45630c
push 0x456324
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x406c54
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret