Function at 0x46c2a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x847c
call fcn.004d6030
push ebx
push esi
push edi
lea eax, [ebp - 0x60]
call fcn.0046b9f8
xor ebx, ebx
push 0x7ffa
lea eax, [ebp - 0x8474]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x8478], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x26f]
push ebx
push eax
mov dword [ebp - 8], 0x3fff
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x270], bl
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8478]
push eax
push ebx
jmp 0x46c4f8
cmp eax, ebx
jne 0x46c497
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x8478]
call fcn.0046c817
test al, al
je 0x46c495
lea eax, [ebp - 0x38]
call fcn.0046b9f8
push 0x104
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x8478]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
lea eax, [ebp - 0x478]
jne 0x46c37c
lea eax, [ebp - 0x8478]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040127c
lea eax, [ebp - 0x38]
call fcn.00407211
mov eax, dword [ebp - 4]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
cmp eax, 0xf
jbe 0x46c40a
cmp eax, 0x20
jbe 0x46c3d4
cmp byte [ebp + eax - 0x271], 0
jne 0x46c40a
cmp byte [ebp + eax - 0x272], 0
jne 0x46c40a
cmp byte [ebp + eax - 0x273], 0
jne 0x46c40a
cmp byte [ebp + eax - 0x274], 0
jne 0x46c40a
lea ecx, [ebp + eax - 0x27c]
jmp 0x46c3da
lea ecx, [ebp - 0x268]
test ecx, ecx
je 0x46c40a
cmp byte [ecx], 0
je 0x46c40a
lea eax, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea esi, [ebp - 0x20]
lea ecx, [ebp - 0x40]
call fcn.0046c521
mov eax, dword [ebp - 4]
cmp eax, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
jbe 0x46c427
movzx eax, word [ebp - 0x26c]
mov dword [ebp - 0x28], eax
jmp 0x46c42b
and dword [ebp - 0x28], 0
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x46c43a
and dword [ebp - 0xc], ebx
jmp 0x46c448
mov eax, dword [esi + 0xc]
sub eax, ebx
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.004bf84a
cmp eax, dword [ebp - 0xc]
jae 0x46c467
lea eax, [ebp - 0x38]
push eax
push 1
push dword [esi + 8]
call fcn.0046cae3
mov dword [esi + 8], eax
jmp 0x46c48a
mov eax, dword [esi + 8]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jbe 0x46c477
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push dword [ebp - 0xc]
lea eax, [ebp - 0x38]
push esi
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, esi
call fcn.0046c9d9
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.00401239
xor ebx, ebx
inc dword [ebp - 0x10]
push 0x7ffa
lea eax, [ebp - 0x8474]
push ebx
push eax
mov dword [ebp - 0x8478], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x26f]
push ebx
push eax
mov dword [ebp - 8], 0x3fff
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x270], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8478]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x200
call edi
cmp eax, 0x103
jne 0x46c32d
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.00401239
pop edi
pop esi
pop ebx
leave
ret 8