Function at 0x46cbab
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 [0x4b6078]
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 0x46ce0b
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.00410b8c
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 0x46cc5c
push esi
call fcn.00410c0e
add esp, 4
xor ebp, ebp
push ebp
push 1
push dword [esp + 0x10]
call fcn.00410b8c
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 0x46cc70
cmp eax, 2
jne 0x46cd15
mov word [esi], 0
jmp 0x46cc7b
cmp dword [esp + 0xc], 7
jne 0x46ccfe
mov eax, dword [esp + 8]
cmp eax, 1
je 0x46cc9c
dec eax
lea ecx, [esi + 1]
cmp byte [ecx - 1], 0
jne 0x46cc93
cmp byte [ecx], 0
je 0x46cca1
mov edx, ecx
inc ecx
sub edx, esi
cmp edx, eax
jb 0x46cc88
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 0x46ccf7
mov edi, dword [esp + 8]
test ecx, ecx
je 0x46cd32
mov ebx, ecx
push ecx
call fcn.0047f0f0
add esp, 4
xor ecx, ecx
lea eax, [edi + eax + 1]
inc ecx
push 0
push ecx
push eax
call fcn.00410b8c
add esp, 0xc
mov edi, eax
push ebx
push eax
call fcn.0047edc0
add esp, 8
push edi
call fcn.0047f0f0
add esp, 4
lea ebp, [edi + eax + 1]
mov dword [esp + 4], edi
jmp 0x46cd45
mov ebp, esi
jmp 0x46cde3
push str.Recent_sessions
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x46cc69
push esi
call fcn.00410c0e
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x46ce0b
push 0
push 1
push edi
call fcn.00410b8c
add esp, 0xc
mov ebp, eax
mov dword [esp + 4], eax
mov ebx, dword [esp]
cmp byte [esi], 0
je 0x46cdad
mov edi, esi
test ebx, ebx
je 0x46cd61
push ebx
push edi
call fcn.0047eec0
add esp, 8
test eax, eax
je 0x46cd9b
push edi
call fcn.0046bf35
add esp, 4
test eax, eax
je 0x46cd98
mov ebx, eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00410c0e
add esp, 4
push edi
push ebp
call fcn.0047edc0
add esp, 8
push ebp
call fcn.0047f0f0
add esp, 4
lea ebp, [ebp + eax + 1]
mov ebx, dword [esp]
push edi
call fcn.0047f0f0
add esp, 4
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x46cd4f
mov eax, dword [esp + 4]
mov byte [ebp], 0
inc ebp
sub ebp, eax
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.00410c0e
add esp, 4
mov edx, dword [esp + 0x2c]
test edi, edi
sete bl
test edx, edx
je 0x46cdef
test bl, bl
je 0x46cdef
mov dword [edx], ebp
jmp 0x46cdf8
push ebp
call fcn.00410c0e
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.0046fa9a
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret