Function at 0x405cd0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x45c136
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
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 0x405ef1
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
push ecx
xor esi, esi
mov dword [esp + 0x34], 0x100
call edi
cmp eax, ebx
jne 0x405e17
mov ebp, 0xf
jmp 0x405d90
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405da3
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00402de0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 1
call fcn.00405c20
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0x25c], bl
jb 0x405dee
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f837
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], 0x100
call edi
test eax, eax
je 0x405d90
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
xor ebp, ebp
jmp 0x405e30
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x405f1b
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 0x405ef5
cmp dword [esi + ebp + 0x18], 0x10
jb 0x405e6a
mov esi, dword [esi + ebp + 4]
jmp 0x405e6e
lea esi, [esi + ebp + 4]
mov eax, dword [esp + 0x30]
push esi
push eax
push str._s_s
lea ecx, [esp + 0x5c]
push 0x100
push ecx
call fcn.00408310
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x64]
push edx
push esi
call fcn.00405cd0
push 0x100
lea eax, [esp + 0x170]
push eax
push str.HardwareID
lea ecx, [esp + 0x78]
push ecx
push SysReAllocStringLen
call fcn.00410440
add esp, 0x30
test eax, eax
jbe 0x405ee6
push esi
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405ee6
push 1
lea eax, [esp + 0x54]
push eax
push SysReAllocStringLen
call fcn.00410500
add esp, 0xc
add edi, 1
add ebp, 0x1c
jmp 0x405e30
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x405f1b
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push esi
call fcn.004139e0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f837
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.00440494
add esp, 0x24c
ret