Function at 0x40ca74
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfdc
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xfd4], edi
call fcn.0041952d
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x403
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x404
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3e8
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3f3
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3fb
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3fc
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3fd
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3fe
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
mov dword [esp], 0x3ff
push dword [edi + 0x20]
call esi
push eax
call fcn.004146ab
pop ecx
lea esi, [edi + 0xecc]
call fcn.00403996
lea esi, [edi + 0xf4c]
call fcn.00403a82
lea esi, [edi + 0xfcc]
call fcn.00403a82
lea esi, [edi + 0x104c]
call fcn.00403a82
lea esi, [edi + 0xad8]
call fcn.00403a82
lea esi, [edi + 0xbcc]
call fcn.00403a82
lea esi, [edi + 0xc4c]
call fcn.00403a82
lea esi, [edi + 0xccc]
call fcn.00403a82
mov esi, 0x56bc6c
push 1
mov ebx, 0x56bc50
mov edx, str.Show8Ctrl
mov ecx, esi
call fcn.00408775
pop ecx
cmp eax, 1
jne 0x40cbd6
lea ecx, [edi + 0xbcc]
mov eax, dword [ecx]
push 1
call dword [eax + 0x168]
push 1
mov edx, str.Show8RWin
mov ecx, esi
call fcn.00408775
pop ecx
cmp eax, 1
jne 0x40cbfa
lea ecx, [edi + 0xc4c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x168]
push 1
mov edx, str.Show8RWin2
mov ecx, esi
call fcn.00408775
pop ecx
cmp eax, 1
jne 0x40cc1e
lea ecx, [edi + 0xccc]
mov eax, dword [ecx]
push 1
call dword [eax + 0x168]
push 0
mov edx, str.CtrlWinKey
mov ecx, esi
call fcn.00408775
pop ecx
cmp eax, 1
jne 0x40cc42
lea ecx, [edi + 0xf4c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x168]
push 0
mov edx, str.ShiftWinKey
mov ecx, esi
call fcn.00408775
pop ecx
cmp eax, 1
jne 0x40cc66
lea ecx, [edi + 0xfcc]
mov eax, dword [ecx]
push 1
call dword [eax + 0x168]
push 0
mov edx, str.HoldWinKey
mov ecx, esi
call fcn.00408775
pop ecx
cmp eax, 1
jne 0x40cc8a
lea ecx, [edi + 0x104c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x168]
push 0x3f4
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40761b
mov esi, eax
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
push str.SD_WNDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
push eax
push 0
mov esi, 0x153
push esi
push dword [edi + 0x740]
call ebx
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0xffffffffffffffff
push esi
push dword [edi + 0x740]
call ebx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Start_button_shows_Start8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40cd2c
mov eax, dword [eax]
push eax
push 0
push 0x143
push dword [edi + 0x740]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Start_button_shows_the_Windows_8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40cd77
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfd4]
push 0
push 0x143
push dword [eax + 0x740]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
mov esi, 0x56b080
lea edi, [ebp - 0xfd0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xfdc]
push eax
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
lea eax, [ebp - 0xfd0]
push eax
mov dword [ebp - 0xfdc], esi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x40ce77
mov eax, dword [ebp - 0xfdc]
lea edx, [ebp - 0xfa4]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x40cddf
lea edi, [ebp - 0xfa4]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x40cdf7
push 0xb
pop ecx
mov esi, str.User_PinnedStartMenu
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xfa4]
push eax
movsw word es:[edi], word [esi]
call fcn.00519c9d
lea edi, [ebp - 0xfa4]
pop ecx
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ce25
push 0xa
pop ecx
lea eax, [ebp - 0xfa4]
mov esi, str.Windows_8_Menu.lnk
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0xfd4]
test eax, eax
je 0x40ce69
push 0x3e8
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 0xfdc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40ce7d
mov edi, dword [ebp - 0xfd4]
push 0x3f6
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40761b
mov esi, eax
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
push str.SD_WNDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0
mov esi, 0x153
push esi
push dword [edi + 0x828]
call ebx
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0xffffffffffffffff
push esi
push dword [edi + 0x828]
call ebx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Windows_key_shows_Start8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40cf19
mov eax, dword [eax]
push eax
push 0
push 0x143
push dword [edi + 0x828]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Windows_key_shows_Windows_8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40cf64
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfd4]
push 0
push 0x143
push dword [eax + 0x828]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Windows_key_shows_the_last_Modern_UI_application
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40cfb5
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfd4]
push 0
push 0x143
push dword [eax + 0x828]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
mov edi, dword [ebp - 0xfd4]
push 0x3f8
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40761b
mov esi, eax
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
push str.SD_WNDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0
mov esi, 0x153
push esi
push dword [edi + 0x910]
call ebx
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0xffffffffffffffff
push esi
push dword [edi + 0x910]
call ebx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Windows_key_fades_to_desktop_and_shows_Start8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40d07c
mov eax, dword [eax]
push eax
push 0
push 0x143
push dword [edi + 0x910]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Windows_key_shows_Windows_8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40d0c7
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfd4]
push 0
push 0x143
push dword [eax + 0x910]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Windows_key_switches_back_to_desktop
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40d118
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfd4]
push 0
push 0x143
push dword [eax + 0x910]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
mov edi, dword [ebp - 0xfd4]
push 0x3fa
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40761b
mov esi, eax
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
push str.SD_WNDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0
mov esi, 0x153
push esi
push dword [edi + 0xb78]
call ebx
fld qword [0x5946a8]
fmul qword [0x5714f0]
call fcn.0051d216
movzx eax, ax
push eax
push 0xffffffffffffffff
push esi
push dword [edi + 0xb78]
call ebx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Start_menu_hot_corner_should_show_Start8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40d1df
mov eax, dword [eax]
push eax
push 0
push 0x143
push dword [edi + 0xb78]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xfd8], esp
push str.Start_menu_hot_corner_should_show_Windows_8_menu
call fcn.00402b62
lea eax, [ebp - 0xfc0]
push eax
call fcn.00414a79
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40d22a
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfd4]
push 0
push 0x143
push dword [eax + 0xb78]
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0xfc0]
call fcn.00402c49
push edi
mov ebx, 0x56bc50
mov edx, str.MetroStartMode
mov ecx, 0x56bc6c
call fcn.00408775
mov esi, dword [ebp - 0xfd4]
pop ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x14e
push dword [esi + 0xb78]
call edi
push 0
mov edx, str.StartButtonAction
mov ecx, 0x56bc6c
call fcn.00408775
pop ecx
push 0
push eax
push 0x14e
push dword [esi + 0x740]
call edi
push 0
mov edx, str.WinButtonAction
mov ecx, 0x56bc6c
call fcn.00408775
pop ecx
push 0
push eax
push 0x14e
push dword [esi + 0x828]
call edi
push 0
mov edx, str.MetroWinButtonAction
mov ecx, 0x56bc6c
call fcn.00408775
pop ecx
push 0
push eax
push 0x14e
push dword [esi + 0x910]
call edi
mov ecx, esi
call fcn.00411921
mov ecx, esi
call fcn.00411bad
mov ecx, esi
call fcn.00411c45
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop edi
mov dword [esi + 0xa8], eax
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret