Function at 0x4325c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x48]
push edx
push 0
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x4c]
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov byte [ebp - 0x39], 0
test ebx, ebx
jne 0x432784
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4327d1
push eax
call fcn.00462d62
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x43264f
xor al, al
jmp 0x4327d4
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x48]
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x432729
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
cmp eax, 4
jne 0x4326bb
cmp ecx, 4
jne 0x432707
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x38]
push 0x4b6790
push ecx
call fcn.00464ba4
mov ecx, dword [ebp - 0x44]
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
call fcn.004061a0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00462992
add esp, 4
jmp 0x4327d1
cmp eax, 1
jne 0x4326e1
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push eax
call fcn.004061a0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00462992
add esp, 4
jmp 0x4327d1
cmp eax, 2
jne 0x432707
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004061a0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00462992
add esp, 4
jmp 0x4327d1
mov edx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
push edx
call fcn.004076b0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00462992
add esp, 4
jmp 0x4327d1
lea ecx, [ebp - 0x38]
call fcn.004065a0
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00407290
mov ebx, dword [esi]
lea ecx, [ebp - 0x38]
call fcn.00405cc0
push eax
mov eax, dword [ebx + 0x28]
push str.RegistryQueryError2
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push edi
push str.ValueName
mov ecx, esi
call eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.004067c0
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00462992
add esp, 4
jmp 0x4327d1
lea ecx, [ebp - 0x78]
call fcn.004065a0
push ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 1
call fcn.00407290
mov ebx, dword [esi]
lea ecx, [ebp - 0x78]
call fcn.00405cc0
mov edx, dword [ebx + 0x28]
push eax
push str.RegistryQueryError
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.004067c0
mov al, byte [ebp - 0x39]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462848
mov esp, ebp
pop ebp
ret