Function at 0x409c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4c08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x3c], ebx
mov eax, 1
mov dword [ebp - 4], eax
sub esp, 0x1c
mov dword [ebp - 0x40], eax
mov ecx, esp
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp + 8]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00404570
mov ecx, edi
call fcn.004098f0
mov dword [ebp - 0x40], eax
cmp eax, 1
je 0x409d27
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp + 0x24]
mov word [esi], ax
call fcn.00409010
mov edi, 8
cmp dword [ebp + 0x1c], edi
jb 0x409d05
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], edi
jb 0x409e92
mov eax, dword [ebp + 0x24]
push eax
jmp 0x409e8a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push ebx
lea eax, [ebp + 8]
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
push edi
call fcn.00409820
mov dword [ebp - 0x34], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d7af
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push ebx
push eax
mov dword [ebp - 0x30], eax
call fcn.00497ad0
lea eax, [edi + 0xc]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x409d88
mov eax, dword [eax]
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x38]
push edx
mov edx, dword [edi + 4]
or ecx, 0x20019
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [edi], eax
cmp eax, ebx
jne 0x409cd8
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x409db8
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push edx
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi], eax
cmp eax, ebx
je 0x409dda
xor edi, edi
jmp 0x409ddd
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x409e09
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp + 0x24]
mov word [esi], cx
call fcn.00409010
mov edi, 8
jmp 0x409e60
mov edi, dword [ebp - 0x30]
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.00403fb0
push edi
mov byte [ebp - 4], 2
call fcn.00491285
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
add esp, 4
lea edi, [ebp - 0x2c]
mov word [esi], dx
call fcn.00409010
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x409e50
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x1c], edi
jb 0x409e71
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x38], edi
jb 0x409e92
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00490a16
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 0x38