Function at 0x42fffe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc34
mov eax, 0x4cd176
call fcn.004ae269
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc1c], eax
xor eax, eax
xor ebx, ebx
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
mov esi, ecx
push ebx
mov edi, 0x400
push eax
mov dword [ebp - 0xc38], esi
mov dword [ebp - 0xc20], 0x200
mov dword [ebp - 0xc18], edi
mov dword [ebp - 0xc14], ebx
call fcn.004adda0
add esp, 0xc
mov dword [ebp - 0xc24], ebx
call fcn.0048aa29
push eax
lea ecx, [ebp - 0xc40]
call fcn.00402840
push 0x800
lea eax, [ebp - 0xc10]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004adda0
push edi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004adda0
add esp, 0x18
xor eax, eax
mov edi, esi
call fcn.00411c38
lea eax, [ebp - 0xc28]
push eax
push 9
push ebx
push dword [ebp - 0xc1c]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x4302b8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x4302ac
cmp dword [ebp - 0xc24], ebx
jbe 0x4302ac
lea eax, [ebp - 0xc18]
push eax
push ebx
lea eax, [ebp - 0xc34]
push eax
push ebx
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xc14]
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0xc14]
mov edi, eax
cmp edi, 0x103
je 0x4302ac
cmp edi, 0xea
je 0x430283
cmp dword [ebp - 0xc18], 0x7fd
ja 0x430283
cmp edi, ebx
jne 0x430283
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc34]
push eax
push ebx
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x430283
call fcn.0048aa29
push eax
lea ecx, [ebp - 0xc30]
call fcn.00402840
lea ecx, [ebp - 0xc2c]
call fcn.00402865
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 1
call fcn.0040276b
lea eax, [ebp - 0xc30]
push eax
lea ecx, [ebp - 0xc1c]
call fcn.004025a1
mov esi, dword [ebp - 0xc3c]
mov byte [ebp - 4], 2
cmp byte [esi + 0x20], bl
je 0x4301f7
lea edi, [ebp - 0xc1c]
call fcn.0042feca
lea eax, [ebp - 0xc1c]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.0040262c
lea eax, [ebp - 0xc1c]
push eax
add esi, 4
call fcn.004302d0
mov ecx, dword [ebp - 0xc38]
lea eax, [ebp - 0xc30]
call fcn.00411bfd
push 0x800
lea eax, [ebp - 0xc10]
push ebx
push eax
mov dword [ebp - 0xc18], 0x400
mov dword [ebp - 0xc20], 0x200
xor edi, edi
call fcn.004adda0
mov ecx, dword [ebp - 0xc1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402883
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xc2c]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0xc30]
add ecx, 0xfffffff0
call fcn.00402883
jmp 0x43029a
inc dword [ebp - 0xc14]
mov eax, 0x7fe
mov dword [ebp - 0xc20], eax
mov dword [ebp - 0xc18], eax
mov eax, dword [ebp - 0xc14]
cmp eax, dword [ebp - 0xc24]
jb 0x4300fe
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc40]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, edi
call fcn.004ae2ec
ret 8