Function at 0x432626
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc34
mov eax, 0x504782
call fcn.004e3d69
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.004e38a0
add esp, 0xc
mov dword [ebp - 0xc24], ebx
call fcn.004be6f3
push eax
lea ecx, [ebp - 0xc40]
call fcn.004027f9
push 0x800
lea eax, [ebp - 0xc10]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004e38a0
push edi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004e38a0
add esp, 0x18
xor eax, eax
mov edi, esi
call fcn.00414228
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 0x4328e0
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 0x4328d4
cmp dword [ebp - 0xc24], ebx
jbe 0x4328d4
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 0x4328d4
cmp edi, 0xea
je 0x4328ab
cmp dword [ebp - 0xc18], 0x7fd
ja 0x4328ab
cmp edi, ebx
jne 0x4328ab
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 0x4328ab
call fcn.004be6f3
push eax
lea ecx, [ebp - 0xc30]
call fcn.004027f9
lea ecx, [ebp - 0xc2c]
call fcn.0040281e
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 1
call fcn.00402719
lea eax, [ebp - 0xc30]
push eax
lea ecx, [ebp - 0xc1c]
call fcn.00402305
mov esi, dword [ebp - 0xc3c]
mov byte [ebp - 4], 2
cmp byte [esi + 0x20], bl
je 0x43281f
lea edi, [ebp - 0xc1c]
call fcn.004324f2
lea eax, [ebp - 0xc1c]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.004025da
lea eax, [ebp - 0xc1c]
push eax
add esi, 4
call fcn.004328f8
mov ecx, dword [ebp - 0xc38]
lea eax, [ebp - 0xc30]
call fcn.004141ed
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.004e38a0
mov ecx, dword [ebp - 0xc1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285b
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xc2c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0xc30]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x4328c2
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 0x432726
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc40]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, edi
call fcn.004e3dec
ret 8