Function at 0x4340b7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc34
mov eax, 0x4d79e0
call fcn.004bed19
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.004be850
add esp, 0xc
mov dword [ebp - 0xc24], ebx
call fcn.00499991
push eax
lea ecx, [ebp - 0xc40]
call fcn.004727f7
push 0x800
lea eax, [ebp - 0xc10]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004be850
push edi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004be850
add esp, 0x18
xor eax, eax
mov edi, esi
call fcn.00415db4
lea eax, [ebp - 0xc28]
push eax
push 9
push ebx
push dword [ebp - 0xc1c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x434371
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 0x434365
cmp dword [ebp - 0xc24], ebx
jbe 0x434365
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 0x434365
cmp edi, 0xea
je 0x43433c
cmp dword [ebp - 0xc18], 0x7fd
ja 0x43433c
cmp edi, ebx
jne 0x43433c
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 0x43433c
call fcn.00499991
push eax
lea ecx, [ebp - 0xc30]
call fcn.004727f7
lea ecx, [ebp - 0xc2c]
call fcn.00402792
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 1
call fcn.004026bd
lea eax, [ebp - 0xc30]
push eax
lea ecx, [ebp - 0xc1c]
call fcn.0040228a
mov esi, dword [ebp - 0xc3c]
mov byte [ebp - 4], 2
cmp byte [esi + 0x20], bl
je 0x4342b0
lea edi, [ebp - 0xc1c]
call fcn.00433f83
lea eax, [ebp - 0xc1c]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.0040257e
lea eax, [ebp - 0xc1c]
push eax
add esi, 4
call fcn.00434389
mov ecx, dword [ebp - 0xc38]
lea eax, [ebp - 0xc30]
call fcn.00415d79
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.004be850
mov ecx, dword [ebp - 0xc1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004027b0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xc2c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0xc30]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x434353
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 0x4341b7
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc40]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, edi
call fcn.004bed9c
ret 8