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

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x18]
push 0
lea eax, [esp + 8]
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 0x453e0a
mov eax, 2
pop ebp
add esp, 0x10
ret
push ebx
push esi
push 1
push 0xc8
mov dword [esp + 0x18], 0xc8
call fcn.0040c6e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.Recent_sessions
push eax
call esi
cmp eax, 0xea
jne 0x453e7b
push ebx
call fcn.0040c850
mov ecx, dword [esp + 0x14]
push 1
push ecx
call fcn.0040c6e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ebx, eax
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.Recent_sessions
push ecx
call esi
cmp eax, 2
je 0x453edf
test eax, eax
je 0x453ea4
push ebx
call fcn.0040c850
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, 3
pop ebp
add esp, 0x10
ret
cmp dword [esp + 0x18], 7
je 0x453ee6
mov eax, dword [esp + 0xc]
push str.Recent_sessions
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x453edf
push ebx
call fcn.0040c850
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, 3
pop ebp
add esp, 0x10
ret
mov byte [ebx + 1], 0
mov byte [ebx], 0
mov ecx, dword [esp + 0x10]
dec ecx
mov eax, ebx
test ecx, ecx
jle 0x453f04
xor edx, edx
cmp byte [eax], 0
jne 0x453efe
cmp byte [eax + 1], 0
je 0x453f04
inc edx
inc eax
cmp edx, ecx
jl 0x453ef3
sub eax, ebx
cmp eax, ecx
jl 0x453f11
mov byte [ebx], 0
mov byte [ebx + 1], 0
test ebp, ebp
jne 0x453f22
cmp dword [esp + 0x24], ebp
jne 0x453f33
xor esi, esi
jmp 0x45404d
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453f27
sub eax, edx
inc eax
jmp 0x453f35
xor eax, eax
mov edx, dword [esp + 0x10]
push edi
add eax, edx
push 1
push eax
call fcn.0040c6e0
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
mov esi, edx
mov edi, ebx
test ebp, ebp
je 0x453f84
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x453f60
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453f73
sub eax, edx
mov edx, dword [esp + 0x18]
lea esi, [eax + esi + 1]
cmp byte [ebx], 0
je 0x454021
lea ecx, [ecx]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x453fc9
mov eax, edi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x453fc0
test dl, dl
je 0x453fbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x453fc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x453fa0
xor eax, eax
jmp 0x453fc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x454001
push edi
call fcn.004530c0
add esp, 4
test eax, eax
je 0x454001
push eax
call fcn.004530b0
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x453fe5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453ff4
sub eax, edx
lea esi, [esi + eax + 1]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x454006
sub eax, edx
cmp byte [edi + eax + 1], cl
lea edi, [edi + eax + 1]
jne 0x453f90
mov edx, dword [esp + 0x18]
mov byte [esi], 0
mov eax, dword [esp + 0x10]
sub esi, edx
inc esi
push esi
push edx
push 7
push 0
push str.Recent_sessions
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
mov esi, eax
call fcn.0040c850
mov ebx, dword [esp + 0x1c]
add esp, 4
pop edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x454059
mov dword [eax], ebx
jmp 0x454062
push ebx
call fcn.0040c850
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
pop esi
sbb eax, eax
pop ebx
and eax, 4
pop ebp
add esp, 0x10
ret