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

Disassembly:
sub esp, 0x410
mov dl, byte [0x1011f854]
push ebx
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10120f6c]
test eax, eax
je 0x10024937
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x10]
push 0x104
push eax
call ebp
mov edi, str.SetupApi.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [0x10120fa8], eax
je 0x10024b63
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push eax
call ebx
mov ecx, dword [0x10120fa8]
push str.SetupDiEnumDeviceInterfaces
push ecx
mov dword [0x10120fa0], eax
call ebx
mov edx, dword [0x10120fa8]
push str.SetupDiGetDeviceInterfaceDetailA
push edx
mov dword [0x10120f68], eax
call ebx
mov dword [0x10120f74], eax
mov eax, dword [0x10120fa8]
push str.SetupDiDestroyDeviceInfoList
push eax
call ebx
lea ecx, [esp + 0x218]
push 0x104
push ecx
mov dword [0x10120f7c], eax
call ebp
mov edi, str.hid.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 8
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
lea eax, [esp + 0x220]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [0x10120f64], eax
je 0x10024b63
push str.HidD_GetHidGuid
push eax
call ebx
mov ecx, dword [0x10120f64]
push str.HidD_SetFeature
push ecx
mov dword [0x10120f60], eax
call ebx
mov edx, dword [0x10120f64]
push str.HidD_GetFeature
push edx
mov dword [0x10120f80], eax
call ebx
mov dword [0x10120fb4], eax
mov eax, dword [0x10120f64]
push str.HidD_GetPreparsedData
push eax
call ebx
mov ecx, dword [0x10120f64]
push str.HidD_GetAttributes
push ecx
mov dword [0x10120f90], eax
call ebx
mov edx, dword [0x10120f64]
push str.HidD_FreePreparsedData
push edx
mov dword [0x10120f88], eax
call ebx
mov dword [0x10120f9c], eax
mov eax, dword [0x10120f64]
push str.HidP_GetUsages
push eax
call ebx
mov ecx, dword [0x10120f64]
push str.HidP_GetUsageValue
push ecx
mov dword [0x10120f84], eax
call ebx
mov edx, dword [0x10120f64]
push str.HidP_GetScaledUsageValue
push edx
mov dword [0x10120f8c], eax
call ebx
mov dword [0x10120fa4], eax
mov eax, dword [0x10120f64]
push str.HidP_SetUsages
push eax
call ebx
mov ecx, dword [0x10120f64]
push str.HidP_SetUsageValue
push ecx
mov dword [0x10120f70], eax
call ebx
mov edx, dword [0x10120f64]
push str.HidP_GetCaps
push edx
mov dword [0x10120f78], eax
call ebx
mov dword [0x10120f94], eax
mov eax, dword [0x10120f64]
push str.HidP_GetButtonCaps
push eax
call ebx
mov ecx, dword [0x10120f64]
push str.HidP_GetValueCaps
push ecx
mov dword [0x10120fb0], eax
call ebx
mov edx, dword [0x10120f64]
push str.HidP_MaxUsageListLength
push edx
mov dword [0x10120f98], eax
call ebx
mov dword [0x10120fac], eax
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x10120f6c], eax
pop ebx
add esp, 0x410
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret