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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x64]
push ebx
push esi
xor esi, esi
push esi
lea eax, [esp + 0x48]
push 0x20
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0x1c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetINFClassA]
test eax, eax
jne 0x10002264
pop esi
mov eax, 0xffffffae
pop ebx
add esp, 0x5c
ret 8
push 4
push esi
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002287
pop esi
mov eax, 0xffffffad
pop ebx
add esp, 0x5c
ret 8
push ebp
lea ecx, [esp + 0x2c]
push edi
push ecx
push esi
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x24], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x100023e1
lea edx, [esp + 0x74]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
xor ebp, ebp
push edx
push ebp
lea eax, [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x40]
push 1
push ecx
push ebx
mov dword [esp + 0x90], ebp
call esi
test eax, eax
jne 0x10002329
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x1000232f
call edi
cmp eax, 0x7a
jne 0x10002426
test ebp, ebp
je 0x100022fa
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x74]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x74]
mov ebp, eax
lea eax, [esp + 0x74]
lea edx, [esp + 0x1c]
push eax
push ecx
push ebp
push edx
lea eax, [esp + 0x40]
push 1
push eax
push ebx
call esi
test eax, eax
je 0x100022d7
jmp 0x1000232f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x100023c3
mov al, byte [ebp]
mov edi, ebp
test al, al
je 0x100023b0
mov ecx, dword [esp + 0x74]
add ecx, ebp
cmp edi, ecx
jae 0x100023b0
push 0x100193cc
push edi
call fcn.10003700
mov eax, dword [esp + 0x78]
add esp, 8
mov esi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10002385
test cl, cl
je 0x10002381
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10002385
add eax, 2
add esi, 2
test cl, cl
jne 0x10002361
xor eax, eax
jmp 0x1000238a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100023a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x10002343
jmp 0x100023b0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x100023bb
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100023e1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
inc eax
push ecx
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x100022ae
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
pop edi
test esi, esi
pop ebp
je 0x10002401
cmp esi, 0x103
je 0x10002401
mov dword [esp + 8], 0xffffffab
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 8]
test eax, eax
jl 0x10002435
test esi, esi
je 0x10002430
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10002430
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret 8
mov dword [esp + 0x10], 0xffffffac
jmp 0x100023e7
mov eax, 1
pop esi
pop ebx
add esp, 0x5c
ret 8