Function at 0x46c282
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4b507c]
mov esi, edx
mov ebx, ecx
xor ebp, ebp
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push ebp
push eax
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.SoftwareSimonTathamPuTTYJumplist
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 2
test eax, eax
jne 0x46c4e0
mov eax, 0xc8
lea edi, [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [edi], eax
push ebp
push 1
push eax
call fcn.00410b50
add esp, 0xc
mov esi, eax
lea ebx, [esp + 0xc]
push edi
push eax
push ebx
push ebp
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x46c333
push esi
call fcn.00410bcd
add esp, 4
xor ebp, ebp
push ebp
push 1
push dword [esp + 0x10]
call fcn.00410b50
add esp, 0xc
mov esi, eax
push edi
push eax
push ebx
push ebp
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46c347
cmp eax, 2
jne 0x46c3ea
mov word [esi], 0
jmp 0x46c352
cmp dword [esp + 0xc], 7
jne 0x46c3d3
mov eax, dword [esp + 8]
cmp eax, 1
je 0x46c373
dec eax
lea ecx, [esi + 1]
cmp byte [ecx - 1], 0
jne 0x46c36a
cmp byte [ecx], 0
je 0x46c378
mov edx, ecx
inc ecx
sub edx, esi
cmp edx, eax
jb 0x46c35f
mov word [esi], 0
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x2c]
mov bl, 1
mov eax, ecx
or eax, dword [esp]
je 0x46c3cc
mov edi, dword [esp + 8]
test ecx, ecx
je 0x46c407
mov ebx, ecx
push ecx
call fcn.0047e720
add esp, 4
lea eax, [edi + eax + 1]
push 0
push 1
push eax
call fcn.00410b50
add esp, 0xc
mov edi, eax
push ebx
push eax
call fcn.0047e3f0
add esp, 8
push edi
call fcn.0047e720
add esp, 4
lea ebp, [eax + edi + 1]
mov dword [esp + 4], edi
jmp 0x46c41a
mov ebp, esi
jmp 0x46c4b8
push str.Recent_sessions
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x46c340
push esi
call fcn.00410bcd
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x46c4e0
push 0
push 1
push edi
call fcn.00410b50
add esp, 0xc
mov ebp, eax
mov dword [esp + 4], eax
mov ebx, dword [esp]
cmp byte [esi], 0
je 0x46c482
mov edi, esi
test ebx, ebx
je 0x46c436
push ebx
push edi
call fcn.0047e4f0
add esp, 8
test eax, eax
je 0x46c470
push edi
call fcn.0046b60f
add esp, 4
test eax, eax
je 0x46c46d
mov ebx, eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00410bcd
add esp, 4
push edi
push ebp
call fcn.0047e3f0
add esp, 8
push ebp
call fcn.0047e720
add esp, 4
lea ebp, [eax + ebp + 1]
mov ebx, dword [esp]
push edi
call fcn.0047e720
add esp, 4
lea edi, [eax + edi + 1]
cmp byte [edi], 0
jne 0x46c424
mov eax, dword [esp + 4]
mov byte [ebp], 0
sub ebp, eax
inc ebp
push ebp
mov ebp, eax
push eax
push 7
push 0
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call fcn.00410bcd
add esp, 4
mov edx, dword [esp + 0x2c]
test edi, edi
sete bl
test edx, edx
je 0x46c4c4
test bl, bl
je 0x46c4c4
mov dword [edx], ebp
jmp 0x46c4cd
push ebp
call fcn.00410bcd
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, 1
movzx edi, bl
shl edi, 2
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046f0c8
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret