Function at 0x406c81
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 [0x52dc8c]
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 [0x52dc90]
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 0x406d80
push str.SetupDiGetClassDevsA
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52dc70], 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 [0x52dc2c], 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 [0x52dc30], 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 [0x52dc34], eax
jmp 0x406d9b
push 0x10
push 0x456248
push 0x456264
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x406ebe
push 0x104
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x45626c
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 0x406ea1
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 [0x52dc28], 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 [0x52dc38], 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 [0x52dc80], 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 [0x52dc4c], 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 [0x52dc40], 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 [0x52dc6c], 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 [0x52dc50], eax
jmp 0x406eb9
push 0x10
push 0x4562fc
push 0x456314
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x406ebe
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret