Function at 0x403db5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov ecx, 0x8e
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x403dc3
push ebx
push esi
push edi
mov dword [ebp - 8], 0
push dword [ebp + 8]
push str.SYSTEMCurrentControlSetEnum_s
lea edi, [ebp - 0x108]
push edi
call fcn.0041adb1
add esp, 0xc
lea edi, [ebp - 4]
push edi
push 1
push 0
lea edi, [ebp - 0x108]
push edi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
cmp eax, 0
jne 0x404092
mov dword [ebp - 0x10c], 0x100
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x20c]
push edi
lea edi, [ebp - 0x214]
push edi
push 0
push str.FriendlyName
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
cmp eax, 0
jne 0x40408a
push 0x45e3dd
lea edi, [ebp - 0x20c]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x40408a
lea edi, [ebp - 0x21c]
push edi
push 0x45e3d5
push dword [ebp - 0x210]
call fcn.0041acd4
add esp, 0xc
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x220]
mov dword [esi + 0x42497c], edi
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x224], eax
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x224]
mov dword [esi + 0x424980], edi
mov edi, dword [ebp + 0xc]
cmp edi, 1
je 0x403eda
cmp edi, 3
jne 0x403ee1
mov ebx, 1
jmp 0x403ee6
mov ebx, 0
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x228], eax
mov edi, dword [ebp - 0x228]
mov dword [edi + 0x424988], ebx
lea edi, [ebp - 0x20c]
push edi
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x22c], eax
mov edi, dword [ebp - 0x22c]
lea edi, [edi + 0x424990]
push edi
call fcn.0041ae2d
add esp, 8
mov dword [ebp - 0x10c], 4
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x218]
push edi
lea edi, [ebp - 0x214]
push edi
push 0
push str.Capabilities
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
cmp eax, 0
jne 0x403f89
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x230], eax
mov edi, dword [ebp - 0x218]
mov esi, dword [ebp - 0x230]
mov dword [esi + 0x424984], edi
cmp dword [ebp + 0xc], 2
jne 0x40406b
mov dword [ebp - 0x10c], 0xc8
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x20c]
push edi
lea edi, [ebp - 0x214]
push edi
push 0
push str.HardwareID
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push str.VID_
lea edi, [ebp - 0x20c]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [ebp - 0x210], eax
cmp eax, 0
je 0x404016
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x234], eax
mov edi, dword [ebp - 0x234]
lea edi, [edi + 0x424a10]
push edi
push 0x45e3b5
mov edi, dword [ebp - 0x210]
add edi, 4
push edi
call fcn.0041acd4
add esp, 0xc
push str.PID_
lea edi, [ebp - 0x20c]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [ebp - 0x210], eax
cmp eax, 0
je 0x40406b
mov eax, 0x98
mul dword [0x45dd44]
mov dword [ebp - 0x238], eax
mov edi, dword [ebp - 0x238]
lea edi, [edi + 0x424a12]
push edi
push 0x45e3b5
mov edi, dword [ebp - 0x210]
add edi, 4
push edi
call fcn.0041acd4
add esp, 0xc
cmp dword [ebp + 0xc], 4
jne 0x40407d
test dword [ebp - 0x218], 4
je 0x40408a
inc dword [0x45dd44]
mov dword [ebp - 8], 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret