Function at 0x472735
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 esi, edx
mov ebp, ecx
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x14], eax
sub esp, 0x24
xor ebx, ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x4a1e70]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], str.SoftwareSimonTathamPuTTYJumplist
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 2
test eax, eax
jne 0x472995
mov dword [esp], esi
mov eax, 0xc8
lea edi, [esp + 8]
mov dword [edi], eax
push ebx
push 1
push eax
call fcn.004116c4
add esp, 0xc
mov esi, eax
lea eax, [esp + 0xc]
push edi
push esi
push eax
push ebx
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x4727fb
push esi
call fcn.00411739
add esp, 4
xor ebx, ebx
push ebx
push 1
push dword [esp + 0x10]
call fcn.004116c4
add esp, 0xc
mov esi, eax
push edi
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push str.Recent_sessions
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x47280f
cmp eax, 2
jne 0x4728a1
mov word [esi], 0
jmp 0x472816
cmp dword [esp + 0xc], 7
jne 0x47288a
mov eax, dword [esp + 8]
dec eax
je 0x472831
xor ecx, ecx
cmp byte [esi + ecx], 0
jne 0x47282c
cmp byte [esi + ecx + 1], 0
je 0x472836
inc ecx
cmp ecx, eax
jb 0x47281f
mov word [esi], 0
mov ecx, dword [esp + 0x2c]
mov bl, 1
mov eax, ebp
or eax, dword [esp]
je 0x472883
mov edi, dword [esp + 8]
test ebp, ebp
je 0x4728be
push ebp
call fcn.00485930
add esp, 4
add eax, edi
inc eax
push 0
push 1
push eax
call fcn.004116c4
add esp, 0xc
mov edi, eax
push ebp
push eax
call fcn.004853a0
add esp, 8
push edi
call fcn.00485930
add esp, 4
mov dword [esp + 4], edi
lea ebp, [eax + edi]
inc ebp
jmp 0x4728d1
mov ebp, esi
jmp 0x47296d
push str.Recent_sessions
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x472808
push esi
call fcn.00411739
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x472995
push 0
push 1
push edi
call fcn.004116c4
add esp, 0xc
mov ebp, eax
mov dword [esp + 4], eax
mov ebx, dword [esp]
cmp byte [esi], 0
je 0x472937
mov edi, esi
test ebx, ebx
je 0x4728ed
push ebx
push edi
call fcn.004854a0
add esp, 8
test eax, eax
je 0x472926
push edi
call fcn.00471add
add esp, 4
test eax, eax
je 0x472923
mov ebx, eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00411739
add esp, 4
push edi
push ebp
call fcn.004853a0
add esp, 8
push ebp
call fcn.00485930
add esp, 4
add ebp, eax
inc ebp
mov ebx, dword [esp]
push edi
call fcn.00485930
add esp, 4
add edi, eax
inc edi
cmp byte [edi], 0
jne 0x4728db
mov byte [ebp], 0
mov eax, dword [esp + 4]
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.00411739
add esp, 4
test edi, edi
sete bl
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x472979
test bl, bl
je 0x472979
mov dword [ecx], ebp
jmp 0x472982
push ebp
call fcn.00411739
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.00475893
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret