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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x24
mov eax, 0x5b964d
call fcn.0058f985
mov ecx, dword [ebp + 0x42c]
mov dword [ebp - 0x20], ecx
push 0xffffffffffffffff
xor ebx, ebx
mov esi, 0x20019
push ebx
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], esi
call fcn.00496684
lea eax, [ebp - 0x18]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push dword [ebp + 0x41c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
je 0x4160f8
call fcn.00446344
test eax, eax
je 0x4160ca
lea ecx, [ebp - 0x18]
push ecx
mov eax, 0x20119
push eax
push ebx
push dword [ebp + 0x41c]
mov dword [ebp - 0x28], eax
push edi
call esi
test eax, eax
je 0x4160f8
mov ecx, dword [ebp + 0x41c]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp + 0x420]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp + 0x424]
add ecx, 0xfffffff0
call fcn.00401019
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x414
leave
ret
mov ecx, dword [ebp + 0x41c]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp + 0x420]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp + 0x424]
add ecx, 0xfffffff0
call fcn.00401019
mov al, bl
jmp 0x4160a7
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x10], ebx
jbe 0x416240
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], 0x104
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x416231
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x428]
jb 0x416231
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
xor eax, eax
push 0x206
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.0058fa90
lea eax, [ebp]
push eax
push dword [ebp + 0x41c]
lea eax, [ebp - 0x14]
push str._s_s
push eax
mov dword [ebp - 0x30], 0x104
call fcn.00401518
add esp, 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x14]
push edi
call esi
test eax, eax
jne 0x416222
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x208]
push eax
push ebx
push ebx
push dword [ebp + 0x420]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416222
mov eax, dword [ebp + 0x424]
cmp dword [eax - 0xc], ebx
jne 0x4161fc
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 8]
lea edx, [ebp + 0x208]
push edx
push eax
call fcn.00496bdc
jmp 0x416222
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp + 0x424]
call fcn.00401bc4
test eax, eax
jne 0x416222
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00496a66
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401019
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jb 0x416125
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], ebx
setne bl
jmp 0x4160ca