Function at 0x4017e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x410
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x14], 0xff
je 0x401c5b
mov ebx, dword [esp + 0x428]
lea eax, [esp + 0x10]
push eax
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [ebp*4 + 0x41954c]
push 0
push 0
push 0
lea eax, [esp + 0x330]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4018a5
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp*4 + 0x41954c], 0
mov cl, byte [ebx]
dec ebp
xor eax, eax
test cl, cl
je 0x401875
mov cl, byte [eax + ebx + 1]
inc eax
test cl, cl
jne 0x401868
test eax, eax
jl 0x40187e
cmp byte [eax + ebx], 0x5c
je 0x401884
dec eax
jns 0x401875
cmp byte [eax + ebx], 0x5c
jne 0x401888
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x42c]
push ecx
push ebx
push ebp
call fcn.004017e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x415108
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x120]
mov ecx, edx
push eax
and ecx, 3
push str.ClassGUID
push ebx
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call fcn.00401040
mov edi, 0x41a800
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x415108
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x230]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x234]
push str.Class
push ecx
push 0x80000002
call fcn.00401040
add esp, 0x20
test eax, eax
je 0x401c39
mov esi, dword [esp + 0x42c]
lea edx, [esp + 0x120]
push esi
push edx
call fcn.00410930
add esp, 8
test eax, eax
jne 0x401bec
push ebx
call fcn.00401210
add esp, 4
test eax, eax
je 0x401b98
lea eax, [esp + 0x20]
push eax
push str.DeviceDesc
push ebx
push 0x80000002
call fcn.00401040
lea ecx, [esp + 0x30]
push 0x415280
push ecx
mov esi, eax
call fcn.004109c0
add esp, 0x18
test esi, esi
je 0x401b98
test eax, eax
jne 0x401b98
push str._____Description____:
call fcn.004029f0
lea edx, [esp + 0x24]
push edx
call fcn.004029f0
push 0x41a4ec
call fcn.004029f0
lea eax, [esp + 0x2c]
push str.RC:_UMC_WDM_Driver__free_build
push eax
call fcn.00410930
add esp, 0x14
test eax, eax
je 0x401a85
lea ecx, [esp + 0x20]
push str.MicroDog_USB_Device
push ecx
call fcn.00410930
add esp, 8
test eax, eax
jne 0x401a8f
mov dword [0x41aa00], 1
lea edx, [esp + 0x20]
push edx
push 0x415230
push ebx
push 0x80000002
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x401acc
push str._____Manufacturer___:
call fcn.004029f0
lea eax, [esp + 0x24]
push eax
call fcn.004029f0
push 0x41a4ec
call fcn.004029f0
add esp, 0xc
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [0x41aa04]
mov edx, ecx
mov esi, edi
mov edi, 0x41a700
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp eax, 0x1f4
rep movsb byte es:[edi], byte [esi]
je 0x401b2a
cmp eax, 0x1f5
je 0x401b2a
cmp eax, 0x1f6
je 0x401b2a
lea eax, [esp + 0x20]
push eax
push str.PortName
push 0x41a700
push 0x80000002
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x401b98
jmp 0x401b77
mov edi, str.Device_Parameters
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x41a700
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
mov ecx, edx
push eax
and ecx, 3
push str.PortName
push 0x41a700
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x401b98
push str._____Port_name______:
call fcn.004029f0
lea ecx, [esp + 0x24]
push ecx
call fcn.004029f0
push 0x41a4ec
call fcn.004029f0
add esp, 0xc
mov edx, dword [ebp*4 + 0x41954c]
xor eax, eax
inc edx
mov dword [ebp*4 + 0x41954c], edx
mov cl, byte [ebx]
test cl, cl
je 0x401bbc
mov cl, byte [eax + ebx + 1]
inc eax
test cl, cl
jne 0x401baf
test eax, eax
jl 0x401bc5
cmp byte [eax + ebx], 0x5c
je 0x401bcb
dec eax
jns 0x401bbc
cmp byte [eax + ebx], 0x5c
jne 0x401bcf
mov byte [eax + ebx], 0
mov edx, dword [esp + 0x42c]
push edx
push ebx
push ebp
call fcn.004017e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov edx, dword [ebp*4 + 0x41954c]
xor eax, eax
inc edx
mov dword [ebp*4 + 0x41954c], edx
mov cl, byte [ebx]
test cl, cl
je 0x401c10
mov cl, byte [eax + ebx + 1]
inc eax
test cl, cl
jne 0x401c03
test eax, eax
jl 0x401c19
cmp byte [eax + ebx], 0x5c
je 0x401c1f
dec eax
jns 0x401c10
cmp byte [eax + ebx], 0x5c
jne 0x401c23
mov byte [eax + ebx], 0
push esi
push ebx
push ebp
call fcn.004017e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov edi, dword [ebp*4 + 0x41954c]
mov eax, dword [esp + 0x42c]
inc edi
push eax
mov dword [ebp*4 + 0x41954c], edi
inc ebp
push ebx
push ebp
call fcn.004017e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret