Function at 0x41c9d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x46614c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x628], 0
push 0x1ff
push 0
lea eax, [ebp - 0x627]
push eax
call fcn.00448bd0
add esp, 0xc
mov dword [ebp - 0x210], 0x200
mov ecx, 9
mov esi, str.SYSTEMCurrentControlSetEnumUSBSTOR
lea edi, [ebp - 0x428]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1da
push 0
lea ecx, [ebp - 0x402]
push ecx
call fcn.00448bd0
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x428]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ca9d
xor eax, eax
jmp 0x41ccfe
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x830]
push edx
mov eax, dword [ebp - 0x630]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0x103
je 0x41ccef
cmp dword [ebp - 0x62c], 0
je 0x41caeb
jmp 0x41ccef
lea edx, [ebp - 0x214]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41cb13
jmp 0x41ca9d
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x218], 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0x103
je 0x41ccba
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41cbb2
cmp dword [ebp - 0x214], 0
je 0x41cb92
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
je 0x41cba8
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41ccfe
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41cbdd
jmp 0x41cb27
mov dword [ebp - 0x210], 0x200
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
push str.ParentIdPrefix
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41cc85
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41cc85
cmp dword [ebp - 0x224], 0
je 0x41cc3f
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
je 0x41cc55
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
je 0x41cc6b
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0044a980
add esp, 8
mov eax, 1
jmp 0x41ccfe
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x224], 0
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], 0x200
jmp 0x41cb27
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0x200
mov eax, dword [ebp - 0x630]
add eax, 1
mov dword [ebp - 0x630], eax
jmp 0x41ca9d
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044892a
mov esp, ebp
pop ebp
ret