Function at 0x4465d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x300
lea ebp, [esp - 4]
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x300], eax
push 0x34
mov eax, 0x4c2895
call fcn.00492516
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x30c]
mov edi, dword [ebp + 0x314]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x310]
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp edi, ebx
je 0x446902
push 8
pop eax
mov esi, 0xff
push esi
mov word [edi], ax
lea eax, [ebp + 0x201]
push ebx
push eax
mov dword [edi + 8], ebx
mov byte [ebp + 0x200], bl
call fcn.00491e90
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp + 0x200]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00491e90
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 5
lea eax, [ebp + 0x200]
push str.HKCR_
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.004b4aee
add esp, 0xc
test eax, eax
jne 0x4466ad
mov dword [ebp - 0x10], SysStringLen
push str.HKCR_
jmp 0x4466fb
push 5
lea eax, [ebp + 0x200]
push str.HKCU_
push eax
call fcn.004b4aee
add esp, 0xc
test eax, eax
jne 0x4466d5
mov dword [ebp - 0x10], SysStringLen
push str.HKCU_
jmp 0x4466fb
push 5
lea eax, [ebp + 0x200]
push str.HKLM_
push eax
call fcn.004b4aee
add esp, 0xc
test eax, eax
jne 0x44670b
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
push str.HKLM_
call fcn.00492a70
lea eax, [ebp + eax + 0x200]
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00470680
push eax
lea eax, [ebp - 0x30]
push str.NOLOG:_USER_GetPreference__strKeyName_
push eax
mov dword [ebp - 4], ebx
call fcn.00470fb0
push str.__val_
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00470f60
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.00470f60
push eax
mov byte [ebp - 4], 3
call fcn.004126e0
add esp, 0x28
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00470660
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00470660
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00470660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00470660
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4468cc
push esi
lea eax, [ebp + 0x101]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp + 0x100], bl
call fcn.00491e90
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x446819
push str.__DOESNTexist__
lea ecx, [ebp - 0x10]
call fcn.0041064c
mov eax, dword [eax]
cmp eax, ebx
je 0x4467ff
mov eax, dword [eax]
jmp 0x446801
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [edi + 8], eax
cmp ecx, ebx
je 0x4468c1
call fcn.004136b9
jmp 0x4468c1
lea eax, [ebp + 0x100]
push eax
lea ecx, [ebp - 0x30]
call fcn.00470680
push eax
lea eax, [ebp - 0x38]
push str.NOLOG:_U_GP_got_result_
push eax
mov dword [ebp - 4], 4
call fcn.00470fb0
push eax
mov byte [ebp - 4], 5
call fcn.004126e0
add esp, 0x10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00470660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00470660
push ebx
lea eax, [ebp + 0x100]
push ebx
push eax
call fcn.00492a70
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push eax
lea eax, [ebp + 0x100]
push eax
push ebx
push ebx
call esi
push eax
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push ebx
push eax
mov dword [edi + 8], eax
call fcn.00491e90
add esp, 0xc
push dword [ebp - 0x10]
lea eax, [ebp + 0x100]
push dword [edi + 8]
push eax
call fcn.00492a70
pop ecx
push eax
lea eax, [ebp + 0x100]
push eax
push ebx
push ebx
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4468f7
push str.__DOESNTexist__
lea ecx, [ebp - 0x18]
call fcn.0041064c
mov eax, dword [eax]
cmp eax, ebx
je 0x4468e3
mov eax, dword [eax]
jmp 0x4468e5
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword [edi + 8], eax
cmp ecx, ebx
je 0x4468f7
call fcn.004136b9
mov dword [ebp - 0x18], ebx
push dword [edi + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0044631b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x300]
xor ecx, ebp
call fcn.00492093
add ebp, 0x304
leave
ret 0xc