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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareSimonTathamPuTTYJumplist
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x467726
mov eax, 2
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 1
push 0xc8
mov dword [ebp - 8], 0xc8
call fcn.0040e450
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
mov ebx, eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push str.Recent_sessions
push dword [ebp - 4]
call esi
cmp eax, 0xea
jne 0x467792
push ebx
call fcn.0040e430
push 1
push dword [ebp - 8]
call fcn.0040e450
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push str.Recent_sessions
push dword [ebp - 4]
call esi
cmp eax, 2
je 0x4677d0
test eax, eax
jne 0x4677b3
cmp dword [ebp - 0x14], 7
je 0x4677d5
push str.Recent_sessions
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4677d0
push ebx
call fcn.0040e430
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov word [ebx], 0
push edi
mov edi, dword [ebp - 8]
mov ecx, ebx
lea edx, [edi - 1]
test edx, edx
je 0x4677f6
xor eax, eax
cmp byte [ecx], 0
jne 0x4677f0
cmp byte [eax + ebx + 1], 0
je 0x4677f6
inc eax
inc ecx
cmp eax, edx
jb 0x4677e4
sub ecx, ebx
cmp ecx, edx
jb 0x467804
mov word [ebx], 0
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
test esi, esi
jne 0x467818
cmp dword [ebp + 0xc], esi
je 0x467936
xor ecx, ecx
jmp 0x46782a
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467820
sub ecx, edx
inc ecx
lea eax, [ecx + edi]
push 1
push eax
call fcn.0040e450
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov ebx, edx
mov dword [ebp - 0x10], edx
mov edi, eax
test esi, esi
je 0x467878
mov ecx, edx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x467850
mov ecx, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467862
mov esi, dword [ebp - 0x10]
sub ecx, edx
mov eax, dword [ebp - 0xc]
lea ebx, [esi + 1]
add ebx, ecx
jmp 0x46787b
mov esi, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x46790c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4678b9
mov ecx, eax
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4678b0
test dl, dl
je 0x4678ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4678b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x467890
xor eax, eax
jmp 0x4678b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4678f3
push edi
call fcn.00467140
add esp, 4
test eax, eax
je 0x4678f3
push eax
call fcn.00466e40
mov edx, ebx
add esp, 4
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4678d5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4678e7
sub ecx, edx
inc ebx
add ebx, ecx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4678f8
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], al
jne 0x467884
mov byte [ebx], 0
sub ebx, esi
inc ebx
push ebx
push esi
push 7
push 0
push str.Recent_sessions
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040e430
mov ebx, dword [ebp - 0x10]
add esp, 4
mov eax, dword [ebp + 0x10]
pop edi
test eax, eax
je 0x467946
test esi, esi
jne 0x467946
mov dword [eax], ebx
jmp 0x46794f
push ebx
call fcn.0040e430
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret