Function at 0x4055d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, str.Recent_file_list
xor edx, edx
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x68c]
push ebx
sub esp, 0x6b0
call fcn.00404ff0
mov dword [ebp - 0x690], eax
test eax, eax
je 0x405600
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea edi, [ebp - 0x21a]
mov dword [ebp - 0x682], 0x250026
mov word [ebp - 0x67a], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x67e], 0x200064
mov dword [ebp - 0x66c], 0x41eb20
mov dword [ebp - 0x668], 0x41e900
mov dword [ebp - 0x664], 0x41e6e0
mov dword [ebp - 0x660], 0x41e4c0
mov dword [ebp - 0x688], 0x208
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov dword [ebp - 0x638], edi
lea edi, [ebp - 0x62a]
sub esp, 4
mov dword [ebp - 0x694], eax
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_RemoveMenu]
mov dword [ebp - 0x65c], 0x30
mov dword [ebp - 0x658], 0x162
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x64c], 0x3ed
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [ebp - 0x69c], eax
call eax
sub esp, 0xc
mov esi, dword [ebp - 0x690]
lea eax, [ebp - 0x678]
mov dword [esp + 4], str.File_d
mov dword [esp], eax
mov ebx, esi
add esi, 1
mov dword [esp + 8], esi
add ebx, 0x3ed
mov dword [ebp - 0x690], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x694]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x69c]
call eax
lea eax, [ebp - 0x688]
mov ebx, dword [ebp + esi*4 - 0x670]
sub esp, 0xc
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x678]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4058b2
mov eax, dword [ebp - 0x690]
mov dword [ebp - 0x63c], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x682]
mov dword [esp + 4], eax
lea eax, [ebp - 0x21a]
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x405790
lea esi, [ebp - 0x422]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], edi
call fcn.0040ddf0
mov ebx, eax
xor eax, eax
mov word [ebx - 2], ax
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
movzx ecx, word [ebx]
sub esp, 8
test eax, eax
je 0x40581c
test cx, cx
je 0x405910
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405808
sub eax, ebx
cmp eax, 0x42
jle 0x405910
mov eax, 0x5c
mov word [ebx - 2], ax
cmp word [ebp - 0x21a], 0
lea eax, [ebp - 0x21a]
je 0x405853
lea esi, [esi]
add eax, 2
cmp word [eax], 0
je 0x405853
add eax, 2
cmp word [eax], 0
jne 0x405838
jmp 0x405853
movzx ecx, word [ebx]
add eax, 2
add ebx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x405850
lea esi, [esi]
lea eax, [ebp - 0x65c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x694]
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call dword [sym.imp.user32.dll_InsertMenuItemW]
add dword [ebp - 0x64c], 1
mov dword [ebp - 0x688], 0x208
sub esp, 0x10
cmp dword [ebp - 0x690], 4
jne 0x4056c1
lea eax, [ebp - 0x65c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x694]
mov dword [ebp - 0x654], 0x800
mov dword [ebp - 0x658], 0x102
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call dword [sym.imp.user32.dll_InsertMenuItemW]
mov eax, dword [ebp - 0x68c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x5c
mov word [ebx - 2], si
cmp ebx, edi
jbe 0x40598c
mov word [ebp - 0x698], cx
xor esi, esi
mov edx, edi
jmp 0x40593d
cmp ax, 0x2f
je 0x405946
add edx, 2
cmp ebx, edx
jbe 0x40597d
movzx eax, word [edx]
cmp ax, 0x5c
jne 0x405930
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov eax, ecx
test esi, esi
jne 0x4059c5
cmp word [ebp - 0x698], 0
je 0x40596f
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x405960
sub eax, ebx
sar eax, 1
add eax, ecx
cmp eax, 0x21
jg 0x40598c
mov esi, edx
add edx, 2
cmp ebx, edx
ja 0x40593d
movzx ecx, word [ebp - 0x698]
cmp esi, ebx
je 0x405825
cmp word [ebp - 0x21a], 0
lea edx, [ebp - 0x21a]
je 0x4059a9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4059a0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4059b0
jmp 0x405868
mov dword [ebp - 0x6a0], ecx
movzx ecx, word [ebp - 0x698]
test cx, cx
je 0x405b50
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4059e0
sub eax, ebx
sar eax, 1
add eax, dword [ebp - 0x6a0]
cmp eax, 0x21
jg 0x405984
mov dword [ebp - 0x6a4], ebx
mov esi, ecx
xor eax, eax
cmp ebx, edx
jb 0x40598c
mov dword [ebp - 0x698], eax
mov eax, ecx
mov ecx, edx
mov edx, dword [ebp - 0x6a4]
jmp 0x405a30
cmp ax, 0x2f
je 0x405a36
sub edx, 2
cmp edx, ecx
jb 0x405a6d
movzx eax, word [edx]
cmp ax, 0x5c
jne 0x405a20
test si, si
je 0x405b45
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405a48
sub eax, ebx
sar eax, 1
add eax, dword [ebp - 0x6a0]
lea eax, [ebx + eax*2]
sub eax, edx
cmp eax, 0x42
jg 0x405a6d
mov dword [ebp - 0x698], edx
jmp 0x405a26
mov edx, ecx
mov eax, dword [ebp - 0x698]
mov ecx, esi
cmp ebx, edx
je 0x405825
test eax, eax
je 0x40598c
cmp edx, eax
je 0x40598c
xor ecx, ecx
cmp word [ebp - 0x21a], 0
mov word [edx + 2], cx
lea ecx, [ebp - 0x21a]
je 0x405ab1
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x405aa8
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [edi + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x405ab8
cmp word [ebp - 0x21a], 0
lea ecx, [ebp - 0x21a]
je 0x405ae9
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x405ae0
xor edx, edx
mov ebx, 0x2e
jmp 0x405aff
movzx ebx, word [edx + 0x412520]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x405af8
cmp word [ebp - 0x21a], 0
lea ecx, [ebp - 0x21a]
je 0x405b29
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x405b20
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [eax + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x405b30
jmp 0x405868
mov eax, dword [ebp - 0x6a0]
jmp 0x405a5b
mov eax, dword [ebp - 0x6a0]
jmp 0x4059f3