Function at 0x4723f8
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 [0x4a1da0]
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 0x47265b
mov dword [esp], esi
mov eax, 0xc8
lea edi, [esp + 8]
mov dword [edi], eax
push ebx
push 1
push eax
call fcn.004115d0
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 0x4724be
push esi
call fcn.00411645
add esp, 4
xor ebx, ebx
push ebx
push 1
push dword [esp + 0x10]
call fcn.004115d0
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 0x4724d2
cmp eax, 2
jne 0x472567
mov word [esi], 0
jmp 0x4724d9
cmp dword [esp + 0xc], 7
jne 0x472550
mov eax, dword [esp + 8]
cmp eax, 1
je 0x4724f7
dec eax
xor ecx, ecx
cmp byte [esi + ecx], 0
jne 0x4724f2
cmp byte [esi + ecx + 1], 0
je 0x4724fc
inc ecx
cmp ecx, eax
jb 0x4724e5
mov word [esi], 0
mov ecx, dword [esp + 0x2c]
mov bl, 1
mov eax, ebp
or eax, dword [esp]
je 0x472549
mov edi, dword [esp + 8]
test ebp, ebp
je 0x472584
push ebp
call fcn.004855c0
add esp, 4
add eax, edi
inc eax
push 0
push 1
push eax
call fcn.004115d0
add esp, 0xc
mov edi, eax
push ebp
push eax
call fcn.00485030
add esp, 8
push edi
call fcn.004855c0
add esp, 4
mov dword [esp + 4], edi
lea ebp, [eax + edi]
inc ebp
jmp 0x472597
mov ebp, esi
jmp 0x472633
push str.Recent_sessions
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4724cb
push esi
call fcn.00411645
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x47265b
push 0
push 1
push edi
call fcn.004115d0
add esp, 0xc
mov ebp, eax
mov dword [esp + 4], eax
mov ebx, dword [esp]
cmp byte [esi], 0
je 0x4725fd
mov edi, esi
test ebx, ebx
je 0x4725b3
push ebx
push edi
call fcn.00485130
add esp, 8
test eax, eax
je 0x4725ec
push edi
call fcn.004717a1
add esp, 4
test eax, eax
je 0x4725e9
mov ebx, eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00411645
add esp, 4
push edi
push ebp
call fcn.00485030
add esp, 8
push ebp
call fcn.004855c0
add esp, 4
add ebp, eax
inc ebp
mov ebx, dword [esp]
push edi
call fcn.004855c0
add esp, 4
add edi, eax
inc edi
cmp byte [edi], 0
jne 0x4725a1
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.00411645
add esp, 4
test edi, edi
sete bl
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x47263f
test bl, bl
je 0x47263f
mov dword [ecx], ebp
jmp 0x472648
push ebp
call fcn.00411645
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.00475526
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret