Function at 0x405b30
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x45b8d6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x268]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x18]
push ecx
push 8
push ebx
push eax
push SysReAllocStringLen
mov dword [esp + 0x270], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d49
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x64]
push eax
push ebx
mov ebp, 0x100
push ecx
xor esi, esi
mov dword [esp + 0x34], ebp
call edi
cmp eax, ebx
jne 0x405c79
jmp 0x405bf0
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405c08
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00402bb0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 1
call fcn.00405a80
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0x25c], 0
jb 0x405c54
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f233
add esp, 4
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x64]
push eax
add esi, 1
push esi
push ecx
mov dword [esp + 0x34], ebp
call edi
test eax, eax
je 0x405bf0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
xor ebp, ebp
mov edi, edi
mov esi, dword [esp + 0x24]
test esi, esi
je 0x405d77
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x405d4f
cmp dword [esi + ebp + 0x18], 0x10
jb 0x405cca
mov esi, dword [esi + ebp + 4]
jmp 0x405cce
lea esi, [esi + ebp + 4]
mov eax, dword [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x58]
push str._s_s
push ecx
call ebx
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x60]
push edx
push esi
call fcn.00405b30
push 0x462917
lea eax, [esp + 0x16c]
push eax
push str.HardwareID
lea ecx, [esp + 0x74]
push ecx
push SysReAllocStringLen
call fcn.0040fd20
add esp, 0x2c
test eax, eax
jbe 0x405d3e
push esi
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405d3e
push 1
lea eax, [esp + 0x54]
push eax
push SysReAllocStringLen
call fcn.0040ff20
add esp, 0xc
add edi, 1
add ebp, 0x1c
jmp 0x405c90
mov esi, dword [esp + 0x24]
jmp 0x405d51
xor ebx, ebx
cmp esi, ebx
je 0x405d77
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push esi
call fcn.00403c60
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f233
add esp, 0x14
mov al, 1
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0044017c
add esp, 0x24c
ret