Function at 0x10002600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x100140c0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov dword [esp + 0x28], eax
call fcn.1000443b
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x28], esi
je 0x100027dd
lea eax, [esp + 0x20]
push eax
push str.EPUSB_d
push ebx
mov dword [ebp + 0x20], 2
call fcn.1000490d
add esp, 0xc
cmp eax, 1
jne 0x100028dd
mov ecx, dword [esp + 0x20]
add ecx, 0xffffffff
cmp ecx, 0x7e
ja 0x100028dd
push 0x12
push edi
push edi
push 0x100101c4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000283a
lea edx, [esp + 0x30]
push edx
push 0
push 0x100101c4
push 0
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x44], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1000282f
lea esp, [esp]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
add dword [esp + 0x10], 1
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push edi
call ebx
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov ebp, eax
mov edx, 5
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000443b
mov esi, eax
add esp, 4
test esi, esi
je 0x100027d6
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
push esi
lea edx, [esp + 0x40]
push edx
mov dword [esi], 5
push edi
mov dword [esp + 0x64], 0x1c
call ebx
test eax, eax
je 0x100027ab
push 0xf003f
push 1
push 0
push 1
lea eax, [esp + 0x5c]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100027ab
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push ecx
push 0
push ebp
mov dword [esp + 0x38], 1
call fcn.100044b0
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0x34]
push eax
push 0
push str.PortName
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100027a4
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100027f7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10004086
mov eax, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x30]
push edx
push eax
push 0x100101c4
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x100026d0
jmp 0x10002827
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebp
mov eax, 0x20000012
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1000452a
add esp, 0x5c
ret 4
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x1c]
push ebx
mov dword [edx + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10004086
add esp, 4
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, dword [esp + 0x28]
push esi
call fcn.10004086
add esp, 4
cmp dword [ebp + 0x24], 0xffffffff
jne 0x100028c3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
push str.._
mov edi, eax
call esi
lea eax, [edi + eax + 1]
push eax
call fcn.1000443b
mov esi, eax
add esp, 4
test esi, esi
je 0x100027dd
push ebx
push str.._s
push esi
call fcn.1000492c
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [ebp + 0x24], eax
call fcn.10004086
add esp, 4
cmp dword [ebp + 0x24], 0xffffffff
jne 0x100028c3
pop edi
pop esi
pop ebp
mov eax, 0x20000101
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1000452a
add esp, 0x5c
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1000452a
add esp, 0x5c
ret 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x20000010
call fcn.1000452a
add esp, 0x5c
ret 4