Function at 0x4055b0
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 - 0x698]
push ebx
sub esp, 0x6cc
call sym._registry_get_handle
mov dword [ebp - 0x69c], eax
test eax, eax
je 0x4055e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea edi, [ebp - 0x226]
mov dword [ebp - 0x68e], 0x250026
mov word [ebp - 0x686], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68a], 0x200064
mov dword [ebp - 0x678], 0x41db20
mov dword [ebp - 0x674], 0x41d900
mov dword [ebp - 0x670], 0x41d6e0
mov dword [ebp - 0x66c], 0x41d4c0
mov dword [ebp - 0x694], 0x208
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov dword [ebp - 0x644], edi
lea edi, [ebp - 0x636]
sub esp, 4
mov dword [ebp - 0x6a0], eax
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_RemoveMenu]
mov dword [ebp - 0x668], 0x30
mov dword [ebp - 0x664], 0x162
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x658], 0x3ed
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f1
mov dword [ebp - 0x6a8], eax
call eax
sub esp, 0xc
mov esi, dword [ebp - 0x69c]
lea eax, [ebp - 0x684]
mov dword [esp + 4], str.File_d
mov dword [esp], eax
mov ebx, esi
inc esi
mov dword [esp + 8], esi
add ebx, 0x3ed
mov dword [ebp - 0x69c], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x6a8]
call eax
lea eax, [ebp - 0x694]
mov ebx, dword [ebp + esi*4 - 0x67c]
sub esp, 0xc
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x684]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x698]
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 0x405889
mov eax, dword [ebp - 0x69c]
mov dword [ebp - 0x648], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x68e]
mov dword [esp + 4], eax
lea eax, [ebp - 0x226]
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x405768
lea esi, [ebp - 0x42e]
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 sym._file_basename
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 0x4057f4
test cx, cx
je 0x4058e8
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4057e0
sub eax, ebx
cmp eax, 0x42
jle 0x4058e8
mov eax, 0x5c
mov word [ebx - 2], ax
cmp word [ebp - 0x226], 0
lea eax, [ebp - 0x226]
je 0x40582b
lea esi, [esi]
add eax, 2
cmp word [eax], 0
je 0x40582b
add eax, 2
cmp word [eax], 0
jne 0x405810
jmp 0x40582b
movzx ecx, word [ebx]
add eax, 2
add ebx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x405828
lea esi, [esi]
lea eax, [ebp - 0x668]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call dword [sym.imp.user32.dll_InsertMenuItemW]
inc dword [ebp - 0x658]
mov dword [ebp - 0x694], 0x208
sub esp, 0x10
cmp dword [ebp - 0x69c], 4
jne 0x4056a1
lea eax, [ebp - 0x668]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6a0]
mov dword [ebp - 0x660], 0x800
mov dword [ebp - 0x664], 0x102
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call dword [sym.imp.user32.dll_InsertMenuItemW]
mov eax, dword [ebp - 0x698]
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 0x40596c
mov word [ebp - 0x6a2], cx
xor esi, esi
mov edx, edi
jmp 0x405915
cmp ax, 0x2f
je 0x40591e
add edx, 2
cmp ebx, edx
jbe 0x40595d
movzx eax, word [edx]
cmp ax, 0x5c
jne 0x405908
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov eax, ecx
test esi, esi
jne 0x4059a5
cmp word [ebp - 0x6a2], 0
je 0x40594f
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405940
sub eax, ebx
sar eax, 1
add eax, ecx
cmp eax, 0x21
jg 0x40596c
mov esi, edx
add edx, 2
cmp ebx, edx
ja 0x405915
movzx ecx, word [ebp - 0x6a2]
cmp esi, ebx
je 0x4057fd
cmp word [ebp - 0x226], 0
lea edx, [ebp - 0x226]
je 0x405989
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x405980
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405990
jmp 0x405840
mov dword [ebp - 0x6ac], ecx
movzx ecx, word [ebp - 0x6a2]
test cx, cx
je 0x405b20
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4059c0
sub eax, ebx
sar eax, 1
add eax, dword [ebp - 0x6ac]
cmp eax, 0x21
jg 0x405964
mov dword [ebp - 0x6b0], ebx
xor eax, eax
cmp ebx, edx
jb 0x40596c
mov esi, eax
mov word [ebp - 0x6a2], cx
mov eax, dword [ebp - 0x6b0]
jmp 0x405a08
cmp cx, 0x2f
je 0x405a0e
sub eax, 2
cmp eax, edx
jb 0x405a41
movzx ecx, word [eax]
cmp cx, 0x5c
jne 0x4059f8
cmp word [ebp - 0x6a2], 0
je 0x405b15
mov ecx, ebx
nop
add ecx, 2
cmp word [ecx], 0
jne 0x405a20
sub ecx, ebx
sar ecx, 1
add ecx, dword [ebp - 0x6ac]
lea ecx, [ebx + ecx*2]
sub ecx, eax
cmp ecx, 0x42
jg 0x405a41
mov esi, eax
jmp 0x4059fe
movzx ecx, word [ebp - 0x6a2]
mov eax, esi
cmp ebx, edx
je 0x4057fd
test esi, esi
je 0x40596c
cmp edx, esi
je 0x40596c
xor ecx, ecx
cmp word [ebp - 0x226], 0
mov word [edx + 2], cx
lea ecx, [ebp - 0x226]
je 0x405a89
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x405a80
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [edi + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x405a90
cmp word [ebp - 0x226], 0
lea ecx, [ebp - 0x226]
je 0x405ab9
add ecx, 2
cmp word [ecx], 0
jne 0x405ab0
xor edx, edx
mov ebx, 0x2e
jmp 0x405acf
movzx ebx, word [edx + 0x411540]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x405ac8
cmp word [ebp - 0x226], 0
lea ecx, [ebp - 0x226]
je 0x405af9
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x405af0
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [eax + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x405b00
jmp 0x405840
mov ecx, dword [ebp - 0x6ac]
jmp 0x405a33
mov eax, dword [ebp - 0x6ac]
jmp 0x4059d3