Function at 0x100025c0
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.100044bb
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x28], esi
je 0x1000279d
lea eax, [esp + 0x20]
push eax
push str.EPUSB_d
push ebx
mov dword [ebp + 0x20], 2
call fcn.1000498d
add esp, 0xc
cmp eax, 1
jne 0x1000289d
mov ecx, dword [esp + 0x20]
add ecx, 0xffffffff
cmp ecx, 0x7e
ja 0x1000289d
push 0x12
push edi
push edi
push 0x100101c4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100027fa
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 0x100027ef
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.100044bb
mov esi, eax
add esp, 4
test esi, esi
je 0x10002796
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 0x1000276b
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 0x1000276b
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push ecx
push 0
push ebp
mov dword [esp + 0x38], 1
call fcn.10004530
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 0x10002764
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100027b7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10004106
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 0x10002690
jmp 0x100027e7
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.100045aa
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.10004106
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.10004106
add esp, 4
cmp dword [ebp + 0x24], 0xffffffff
jne 0x10002883
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.100044bb
mov esi, eax
add esp, 4
test esi, esi
je 0x1000279d
push ebx
push str.._s
push esi
call fcn.100049ac
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.10004106
add esp, 4
cmp dword [ebp + 0x24], 0xffffffff
jne 0x10002883
pop edi
pop esi
pop ebp
mov eax, 0x20000101
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100045aa
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.100045aa
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.100045aa
add esp, 0x5c
ret 4