Function at 0x40bcf0
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 sym._registry_get_handle
mov dword [ebp - 0x690], eax
test eax, eax
je 0x40bd20
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], 0x4103c0
mov dword [ebp - 0x668], 0x4105e0
mov dword [ebp - 0x664], 0x410800
mov dword [ebp - 0x660], 0x410a20
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
inc esi
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 0x40bfc9
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]
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x40bea8
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 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 0x40bf34
test cx, cx
je 0x40c028
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40bf20
sub eax, ebx
cmp eax, 0x42
jle 0x40c028
mov eax, 0x5c
mov word [ebx - 2], ax
cmp word [ebp - 0x21a], 0
lea eax, [ebp - 0x21a]
je 0x40bf6b
lea esi, [esi]
add eax, 2
cmp word [eax], 0
je 0x40bf6b
add eax, 2
cmp word [eax], 0
jne 0x40bf50
jmp 0x40bf6b
movzx ecx, word [ebx]
add eax, 2
add ebx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x40bf68
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]
inc dword [ebp - 0x64c]
mov dword [ebp - 0x688], 0x208
sub esp, 0x10
cmp dword [ebp - 0x690], 4
jne 0x40bde1
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 0x40c0ac
mov word [ebp - 0x696], cx
xor esi, esi
mov edx, edi
jmp 0x40c055
cmp ax, 0x2f
je 0x40c05e
add edx, 2
cmp ebx, edx
jbe 0x40c09d
movzx eax, word [edx]
cmp ax, 0x5c
jne 0x40c048
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov eax, ecx
test esi, esi
jne 0x40c0e5
cmp word [ebp - 0x696], 0
je 0x40c08f
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40c080
sub eax, ebx
sar eax, 1
add eax, ecx
cmp eax, 0x21
jg 0x40c0ac
mov esi, edx
add edx, 2
cmp ebx, edx
ja 0x40c055
movzx ecx, word [ebp - 0x696]
cmp esi, ebx
je 0x40bf3d
cmp word [ebp - 0x21a], 0
lea edx, [ebp - 0x21a]
je 0x40c0c9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40c0c0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c0d0
jmp 0x40bf80
mov dword [ebp - 0x6a0], ecx
movzx ecx, word [ebp - 0x696]
test cx, cx
je 0x40c260
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40c100
sub eax, ebx
sar eax, 1
add eax, dword [ebp - 0x6a0]
cmp eax, 0x21
jg 0x40c0a4
mov dword [ebp - 0x6a4], ebx
xor eax, eax
cmp ebx, edx
jb 0x40c0ac
mov esi, eax
mov word [ebp - 0x696], cx
mov eax, dword [ebp - 0x6a4]
jmp 0x40c148
cmp cx, 0x2f
je 0x40c14e
sub eax, 2
cmp eax, edx
jb 0x40c181
movzx ecx, word [eax]
cmp cx, 0x5c
jne 0x40c138
cmp word [ebp - 0x696], 0
je 0x40c255
mov ecx, ebx
nop
add ecx, 2
cmp word [ecx], 0
jne 0x40c160
sub ecx, ebx
sar ecx, 1
add ecx, dword [ebp - 0x6a0]
lea ecx, [ebx + ecx*2]
sub ecx, eax
cmp ecx, 0x42
jg 0x40c181
mov esi, eax
jmp 0x40c13e
movzx ecx, word [ebp - 0x696]
mov eax, esi
cmp ebx, edx
je 0x40bf3d
test esi, esi
je 0x40c0ac
cmp edx, esi
je 0x40c0ac
xor ecx, ecx
cmp word [ebp - 0x21a], 0
mov word [edx + 2], cx
lea ecx, [ebp - 0x21a]
je 0x40c1c9
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x40c1c0
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [edi + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x40c1d0
cmp word [ebp - 0x21a], 0
lea ecx, [ebp - 0x21a]
je 0x40c1f9
add ecx, 2
cmp word [ecx], 0
jne 0x40c1f0
xor edx, edx
mov ebx, 0x2e
jmp 0x40c20f
movzx ebx, word [edx + 0x41c1f8]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x40c208
cmp word [ebp - 0x21a], 0
lea ecx, [ebp - 0x21a]
je 0x40c239
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x40c230
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [eax + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x40c240
jmp 0x40bf80
mov ecx, dword [ebp - 0x6a0]
jmp 0x40c173
mov eax, dword [ebp - 0x6a0]
jmp 0x40c113