Function at 0x479590
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.004c53a0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.004c53a0
add esp, 0x18
mov dword [ebp - 0x614], 0x41
lea eax, [ebp - 0x610]
xor edi, edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x479865
push esi
lea eax, [ebp - 0x618]
mov dword [ebp - 0x618], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push edi
push str.MRUList
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.004c98b5
lea ecx, [ebp - 0x204]
add esp, 8
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479657
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x479727
nop
movzx eax, word [ebp + esi*2 - 0x204]
mov ecx, 0x7a
sub ecx, eax
mov word [ebp - 0x614], ax
xor eax, eax
mov dword [ebp - 0x618], 0x208
cmp ecx, 1
setg al
or edi, eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x60c]
push eax
push 0
push 0
lea eax, [ebp - 0x614]
push eax
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479702
lea eax, [ebp - 0x60c]
push 0x5c
push eax
call fcn.004c5767
add esp, 8
test eax, eax
je 0x4796ee
lea eax, [ebp - 0x60c]
push 0x5c
push eax
call fcn.004c5767
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x60c]
push eax
push ebx
call fcn.004c9460
add esp, 8
test eax, eax
je 0x47976c
lea eax, [ebp - 0x204]
inc esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479710
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x479670
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x402]
push 0xff
push eax
call fcn.004c913a
xor eax, eax
add esp, 0xc
mov word [ebp - 0x3d0], ax
xor edx, edx
nop dword [eax]
mov eax, 1
mov ecx, edx
shl eax, cl
test edi, eax
je 0x479789
inc edx
cmp edx, 0x1a
jl 0x479750
mov ax, word [ebp - 0x404]
jmp 0x47978c
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
lea eax, [edx + 0x61]
movzx ecx, ax
cmp edx, 0x1a
movzx eax, word [ebp - 0x1d2]
mov esi, ebx
cmove ecx, eax
mov word [ebp - 0x404], cx
mov word [ebp - 0x614], cx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4797b0
sub esi, ecx
sar esi, 1
add esi, 3
lea eax, [esi + esi]
push eax
call fcn.004c8d7a
push ebx
push str._s1
mov edi, eax
push esi
push edi
call fcn.00415290
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4797e2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
lea eax, [ebp - 0x614]
push eax
push dword [ebp - 0x610]
call esi
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479820
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push str.MRUList
push dword [ebp - 0x610]
call esi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004c8d5f
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c34b7
mov esp, ebp
pop ebp
ret