Function at 0x46c112
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 [0x4b6074]
mov esi, ecx
mov ebx, edx
lea ecx, [esp + 0x10]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
push eax
push ecx
push eax
push 0x2001f
push eax
push eax
push eax
push str.SoftwareSimonTathamPuTTYJumplist
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 2
test eax, eax
jne 0x46c364
mov dword [esp], ebx
mov ebx, esi
mov eax, 0xc8
lea edi, [esp + 8]
mov dword [edi], eax
push 1
push eax
call fcn.00410d70
add esp, 8
mov esi, eax
lea ebp, [esp + 0xc]
push edi
push eax
push ebp
push 0
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x46c1bf
push esi
call fcn.00410de6
add esp, 4
push 1
push dword [esp + 0xc]
call fcn.00410d70
add esp, 8
mov esi, eax
push edi
push eax
push ebp
push 0
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebp, ebx
je 0x46c1d5
cmp eax, 2
jne 0x46c270
mov word [esi], 0
jmp 0x46c1dc
cmp dword [esp + 0xc], 7
jne 0x46c259
mov eax, dword [esp + 8]
cmp eax, 1
je 0x46c1fd
dec eax
lea ecx, [esi + 1]
cmp byte [ecx - 1], 0
jne 0x46c1f4
cmp byte [ecx], 0
je 0x46c202
mov edx, ecx
inc ecx
sub edx, esi
cmp edx, eax
jb 0x46c1e9
mov word [esi], 0
mov ecx, dword [esp]
mov edx, dword [esp + 0x2c]
mov eax, ebp
mov bl, 1
or eax, ecx
je 0x46c252
mov edi, dword [esp + 8]
test ebp, ebp
je 0x46c28d
push ebp
call fcn.0047e5a0
add esp, 4
xor ecx, ecx
lea eax, [edi + eax + 1]
inc ecx
push ecx
push eax
call fcn.00410d70
add esp, 8
mov edi, eax
push ebp
push eax
call fcn.0047e270
add esp, 8
push edi
call fcn.0047e5a0
add esp, 4
lea ebp, [edi + eax + 1]
mov dword [esp + 4], edi
jmp 0x46c29e
mov ebp, esi
jmp 0x46c33c
push str.Recent_sessions
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x46c1ce
push esi
call fcn.00410de6
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x46c364
push 1
push edi
call fcn.00410d70
add esp, 8
mov ebp, eax
mov dword [esp + 4], eax
mov ebx, dword [esp]
cmp byte [esi], 0
je 0x46c306
mov edi, esi
test ebx, ebx
je 0x46c2ba
push ebx
push edi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x46c2f4
push edi
call fcn.0046b4bb
add esp, 4
test eax, eax
je 0x46c2f1
mov ebx, eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00410de6
add esp, 4
push edi
push ebp
call fcn.0047e270
add esp, 8
push ebp
call fcn.0047e5a0
add esp, 4
lea ebp, [ebp + eax + 1]
mov ebx, dword [esp]
push edi
call fcn.0047e5a0
add esp, 4
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x46c2a8
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.00410de6
add esp, 4
mov edx, dword [esp + 0x2c]
test edi, edi
sete bl
test edx, edx
je 0x46c348
test bl, bl
je 0x46c348
mov dword [edx], ebp
jmp 0x46c351
push ebp
call fcn.00410de6
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.0046ef41
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret