Function at 0x458420
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524bb2
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x595be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x224]
call fcn.0042a230
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0042a230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.0042a230
mov byte [ebp - 4], 2
mov dword [ebp - 0x248], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x238]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0x103
je 0x458ae0
cmp dword [ebp - 0x244], 0
jne 0x458ac2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00428d50
push str.Volatile_Environment
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.0042d750
add esp, 0xc
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x270]
call fcn.00402a70
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45854c
mov dword [ebp - 0x24c], 1
jmp 0x458556
mov dword [ebp - 0x24c], 0
mov cl, byte [ebp - 0x24c]
mov byte [ebp - 0x22d], cl
lea ecx, [ebp - 0x274]
call fcn.00428a40
movzx edx, byte [ebp - 0x22d]
test edx, edx
je 0x458ac2
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x21c]
shr ecx, 1
push ecx
lea ecx, [ebp - 0x22c]
call fcn.004288a0
push eax
lea edx, [ebp - 0x228]
push edx
push 0
push str.USERDOMAIN
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4585d3
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call fcn.00458b30
jmp 0x45866c
mov dword [ebp - 0x21c], 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x21c]
shr edx, 1
push edx
lea ecx, [ebp - 0x22c]
call fcn.004288a0
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.LOGONSERVER
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call fcn.00458b30
push 2
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00458b80
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0042d650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
call fcn.00428a40
mov dword [ebp - 0x21c], 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x21c]
shr eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.004288a0
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0
push str.USERNAME
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4586c3
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.00458b30
jmp 0x45876f
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x21c]
shr ecx, 1
push ecx
lea ecx, [ebp - 0x224]
call fcn.004288a0
push eax
lea edx, [ebp - 0x228]
push edx
push 0
push 0x567b20
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45876f
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.00458b30
push 0x5c
lea ecx, [ebp - 0x224]
call fcn.0043b7a0
add eax, 1
push eax
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00458b80
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x224]
call fcn.0042d650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.00428a40
mov dword [ebp - 0x21c], 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x21c]
shr edx, 1
push edx
mov ecx, dword [ebp + 0x18]
call fcn.004288a0
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.APPDATA
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4587bd
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x18]
call fcn.00458b30
jmp 0x4587c5
mov ecx, dword [ebp + 0x18]
call fcn.00428830
mov dword [ebp - 0x21c], 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x21c]
shr eax, 1
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004288a0
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0
push str.LOCALAPPDATA
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458813
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.00458b30
jmp 0x458831
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0042d650
push str.Local_SettingsApplication_Data
push str.Application_Data
mov ecx, dword [ebp + 0x10]
call fcn.0042af90
mov dword [ebp - 0x21c], 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x21c]
shr edx, 1
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.004288a0
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0x567c3c
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458882
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x1c]
call fcn.00458b30
jmp 0x458949
mov dword [ebp - 0x21c], 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x21c]
shr eax, 1
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.004288a0
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0
push str.HOMEDRIVE
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458949
lea ecx, [ebp - 0x23c]
call fcn.0042a230
mov byte [ebp - 4], 5
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x21c]
shr ecx, 1
push ecx
lea ecx, [ebp - 0x23c]
call fcn.004288a0
push eax
lea edx, [ebp - 0x228]
push edx
push 0
push str.HOMEPATH
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45893a
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
push str._s_s
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0042a490
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.00428a40
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x567ca8
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0042d750
add esp, 0xc
mov dword [ebp - 0x264], eax
lea edx, [ebp - 0x240]
push edx
push 0x20019
push 0
mov ecx, dword [ebp - 0x264]
call fcn.00402a70
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4589ac
mov dword [ebp - 0x250], 1
jmp 0x4589b6
mov dword [ebp - 0x250], 0
mov al, byte [ebp - 0x250]
mov byte [ebp - 0x22e], al
lea ecx, [ebp - 0x26c]
call fcn.00428a40
movzx ecx, byte [ebp - 0x22e]
test ecx, ecx
je 0x458a41
mov dword [ebp - 0x21c], 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x21c]
shr eax, 1
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004288a0
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0x567c58
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458a26
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00458b30
jmp 0x458a32
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0042d650
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x458a4d
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0042d650
push 0
mov ecx, dword [ebp + 8]
call fcn.00402a70
push eax
lea ecx, [ebp - 0x224]
call fcn.00439430
test eax, eax
jne 0x458ac2
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402a70
push eax
lea ecx, [ebp - 0x22c]
call fcn.00439430
test eax, eax
jne 0x458ac2
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0042d650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00428a40
jmp 0x458b10
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x248], 0x104
jmp 0x458499
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00428a40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fdc6a
mov esp, ebp
pop ebp
ret