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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa3c
mov eax, dword [0x4431cc]
xor eax, ebp
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xa38], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov word [esp + 0x430], bx
mov ecx, 0x81
lea edi, [esp + 0x432]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x20], bx
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x838], bx
mov ecx, 0x81
lea edi, [esp + 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x638], bx
mov ecx, 0x7f
lea edi, [esp + 0x63a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x228], bx
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
stosw word es:[edi], ax
lea eax, [esp + 0x838]
push eax
push ecx
mov ecx, edx
mov dword [esp + 0x14], ebx
xor esi, esi
call fcn.00402f20
lea edx, [esp + 0x228]
push str.SYSTEMCurrentControlSetEnum_
push edx
call fcn.004145fa
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.004145d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x234]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403281
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ParentIdPrefix
push ecx
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x430]
push 0x433190
push edx
call fcn.004150fa
add esp, 8
test eax, eax
je 0x4032c4
lea eax, [esp + 0x20]
push str.SYSTEMCurrentControlSetEnumUSBPRINT_
push eax
call fcn.004145fa
lea ecx, [esp + 0x840]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004145d0
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 8
push ebx
lea ecx, [esp + 0x2c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
jne 0x40325b
push ebx
push ebx
push ebx
push ebx
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x648]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x64c]
push eax
push esi
push ecx
mov dword [esp + 0x38], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
cmp eax, 0x103
je 0x40322a
cmp eax, ebx
jne 0x40322a
lea edx, [esp + 0x430]
push edx
call fcn.00414fdb
add esp, 4
push eax
lea eax, [esp + 0x63c]
push eax
call fcn.00414fdb
add esp, 4
push eax
call fcn.00414f7d
add esp, 8
test eax, eax
je 0x4031b4
mov edi, 1
jmp 0x40322e
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa38]
xor ecx, ebp
call fcn.00414a22
mov esp, ebp
pop ebp
ret 8
push 0xa
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00414ddb
add esp, 0xc
push str.Error_accessing
mov ecx, 0x44d2d0
call fcn.00402680
lea edx, [esp + 0x20]
push edx
jmp 0x4032ab
push 0xa
lea eax, [esp + 0x22c]
push eax
push ebx
call fcn.00414ddb
add esp, 0xc
push str.Error_accessing
mov ecx, 0x44d2d0
call fcn.00402680
lea ecx, [esp + 0x228]
push ecx
mov ecx, 0x44d2d0
call fcn.00402680
mov ecx, 0x44d2d0
push 0x433110
call fcn.00402680
mov ecx, dword [esp + 0xa44]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret 8