Function at 0x463348
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5207ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
push 0
call fcn.00462ed8
movzx eax, al
test eax, eax
je 0x46350a
test edi, edi
je 0x463392
movsx eax, byte [edi]
test eax, eax
jne 0x463399
mov eax, 1
jmp 0x46339b
xor eax, eax
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
xor ecx, ecx
test eax, eax
mov ebx, edi
je 0x4633ae
mov ebx, 0
lea eax, [ebp - 0x28]
push eax
push ecx
push edx
push ecx
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, esi
mov dword [edx + 0x10], eax
test eax, eax
jne 0x463490
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x46345d
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
cmp esi, dword [ebx + 4]
jbe 0x463411
mov edx, dword [ebx]
mov dword [ebp - 0x30], edx
lea eax, [esi + 0x400]
push eax
push edx
call dword [sym.imp.MSVCR80.dll_realloc]
mov edx, dword [ebp - 0x30]
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x463525
mov eax, dword [ebp + 0xc]
add esi, 0x400
mov dword [ebx + 4], esi
mov ebx, dword [eax]
mov eax, dword [ebx]
test edi, edi
je 0x46341e
movsx edx, byte [edi]
test edx, edx
jne 0x463425
mov edx, 1
jmp 0x463427
xor edx, edx
lea ecx, [ebp - 0x24]
test edx, edx
lea edx, [ebp - 0x28]
push edx
push eax
mov eax, dword [ebp - 0x14]
push ecx
je 0x46343c
mov edi, 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0x10]
jmp 0x46346e
mov eax, dword [ebp + 0xc]
mov ecx, edx
mov edx, dword [eax]
mov dword [edx + 8], 0
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x463490
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.0043aa20
test eax, eax
je 0x463532
push 0
push str.Cant_read_value_of_key__s
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.0046311c
mov dword [ebp - 4], 0
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
push eax
push dword [edx + 0x10]
call fcn.0043f61c
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x46350a
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x46350a
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push edx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x463403
mov eax, str.Cant_read_value_of_key__s
mov dword [ebp - 0x30], eax
jmp 0x4634ae