Function at 0x4014e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
mov dword [ebp - 4], 0x1f
mov eax, dword [0x7f3684]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x40151f
mov dword [0x7e20c1], ecx
sub dword [0x7e202f], esi
mov ecx, edi
mov dword [esp - 0x20], eax
mov byte [ebp - 0xd1], 0
mov dword [ebp - 0xc], 0x16d63
mov dword [ebp - 0x10], 0x120bd
mov eax, 0x401dec
mov dword [ebp - 0x14], eax
mov eax, 0x401dfc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
jne 0x401571
mov dword [0x7e20d3], esi
mov dword [esp - 0x24], eax
mov dword [0x7e20aa], 0x13136
inc byte [ebp - 0xd1]
cmp byte [ebp - 0xd1], 1
jne 0x401526
mov dword [ebp - 0x1c], 0x14d24
mov byte [ebp - 0x1d], 0x92
mov al, byte [ebp - 0x1d]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
jne 0x4015b0
and dword [0x7e20d8], edx
mov dword [0x7e2057], 0x15003
mov dword [esp - 8], edi
mov dword [0x7e2052], eax
mov dword [0x7e20ec], edx
add ebx, 2
mov dword [0x7e20fe], edi
lea esi, [0x7e203c]
add dword [esi + 0x28], 0xcb
mov dword [ebp - 0x24], 0x11dfe
mov dword [ebp - 0x28], 0x1f03a
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
test eax, eax
jne 0x401631
inc dword [0x7e2063]
mov word [0x7e20bc], 0x93b7
mov dword [0x7e20e0], esi
cmp dword [0x7e2097], 0
jl 0x40161b
mov dword [0x7e2029], ecx
mov dword [0x7e202f], edx
mov dword [0x7e20a0], 0x1729b
mov edx, dword [0x7e2106]
mov dword [0x7e20b0], eax
mov byte [ebp - 0xd1], 0
mov dword [0x7e2028], edi
cmp word [0x7e20fc], 0
jge 0x401661
mov dword [0x7e20b0], ecx
mov word [0x7e2106], 0x6220
mov dword [0x7e205b], 0x172b2
mov dword [esp - 4], esi
mov ebx, ecx
add dword [0x7e208c], ecx
mov byte [0x7e203f], 0xf3
mov dword [0x7e20af], edi
mov dword [ebp - 0x2c], 0x184f0
mov dword [ebp - 0x30], 0x14936
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
test eax, eax
jne 0x4016a9
mov dword [0x7e207e], eax
and dword [0x7e20d4], ebx
mov dword [esp - 8], ecx
mov dword [0x7e2065], 0x17920
mov word [0x7e2014], 0x4b79
mov dword [0x7e2026], eax
mov word [0x7e2072], 0x2163
mov byte [0x7e2012], 0x75
inc byte [ebp - 0xd1]
cmp byte [ebp - 0xd1], 3
jne 0x401638
mov edi, 0x1e2
mov dword [0x7e208e], esi
mov dword [0x7e2105], 0x11b28
mov dword [0x7e20e0], ecx
mov dword [0x7e20cd], 0x169a2
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
jne 0x401727
mov dword [0x7e20ff], edx
xchg dword [esp - 4], ecx
mov dword [0x7e209c], esi
mov esi, edx
mov dword [0x7e2038], edi
mov byte [0x7e208e], 0x6f
mov dword [esp - 0x1c], edx
xchg dword [0x7e20c6], edi
mov dword [ebp - 0x38], 0x1ed4e
mov dword [ebp - 0x3c], 0x1dcb5
mov eax, 0x401e14
mov dword [ebp - 0x40], eax
mov eax, 0x401e24
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
jne 0x40179c
mov word [0x7e209d], 0xa4a8
add eax, 0x69
lea edx, [0x7e2092]
mov dword [edx + 0xc], 0x9e
mov dword [0x7e20d6], ebx
sub dword [0x7e20d3], edi
mov dword [ebp - 0x48], 0x17694
mov dword [ebp - 0x4c], 0x112ab
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
test eax, eax
jne 0x4017cb
mov dword [0x7e20f9], edi
mov dword [0x7e202e], ebx
mov dword [esp - 0x18], edx
mov dword [0x7e20d9], ecx
mov dword [esp - 0x18], eax
mov ecx, ebx
mov byte [ebp - 0xd1], 0
mov dword [ebp - 0x50], 0x13e7f
mov dword [ebp - 0x54], 0x1d98e
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
mov ebx, eax
sub dword [0x7e2079], esi
mov dword [0x7e202e], ecx
add dword [0x7e201c], esi
mov dword [0x7e2099], 0x177e8
inc byte [ebp - 0xd1]
cmp byte [ebp - 0xd1], 1
jne 0x4017de
cmp cl, byte [esp - 4]
jge 0x401834
mov dword [0x7e2019], esi
jmp 0x40183e
mov dword [0x7e2070], 0x10c83
lea eax, [0x7e2103]
add dword [eax + 0x24], 0x6a
mov edi, esi
mov dword [ebp - 0x58], 0x21
mov eax, dword [0x7f3684]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x401892
cmp byte [0x7e20b0], dl
jge 0x401876
mov ebx, edi
jmp 0x40187c
add edi, 0xd4
mov dword [0x7e2075], ecx
sub eax, dword [0x7e202f]
mov dword [0x7e20d9], 0x14c8a
mov dword [esp - 4], ebx
mov dword [0x7e20eb], edi
mov dword [0x7e20fa], ebx
mov dword [0x7e2102], edx
mov dword [0x7e20bf], 0x15374
mov byte [0x7e2036], 0xcc
mov ecx, edi
mov dword [0x7e2031], esi
mov dword [0x7e20e8], 0x137ba
and dword [0x7e2027], ebx
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
xchg dword [0x7e202f], ecx
lea ebx, [0x7e2030]
mov dword [ebx], 0x91
add dword [0x7e20a3], esi
mov dword [0x7e2101], edi
mov ecx, edx
mov dword [0x7e209a], 0x177e0
mov byte [0x7e203a], 0x3d
mov word [0x7e20c3], 0x1b13
cmp dl, byte [0x7e209a]
je 0x401922
mov dword [0x7e2108], esi
mov byte [0x7e203e], 0xd3
sub dword [0x7e2037], eax
mov dword [0x7e20ba], edx
lea eax, [0x7e209e]
and dword [eax], 0xa0
mov dword [ebp - 0x64], 0xf
mov eax, dword [0x7f3684]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x40196f
mov dword [0x7e20c5], esi
mov ecx, dword [esp + 8]
mov dword [esp - 0x24], edi
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
jne 0x4019bf
and ebx, dword [0x7e205e]
lea esi, [0x7e201b]
mov dword [esi + 4], 0x16
mov byte [0x7e2031], 0x1f
mov dword [0x7e20e2], 0x1751c
cmp word [0x7e2107], cx
jge 0x4019b9
mov dword [0x7e2022], ecx
mov dword [0x7e2072], 0x1764f
xchg dword [0x7e20aa], ecx
mov dword [ebp - 0x70], 0x1acf1
mov byte [ebp - 0x71], 6
mov al, byte [ebp - 0x71]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
je 0x401a14
mov byte [0x7e20d3], 0xbf
xchg dword [0x7e20ce], ecx
cmp edi, 0xffffffff
jle 0x401a09
mov dword [0x7e2064], edx
xchg dword [0x7e20bc], edi
sub dword [0x7e2047], ebx
mov dword [0x7e20c2], 0x1517a
mov edi, 0x127
mov dword [0x7e2107], ebx
xchg dword [0x7e20d0], ecx
mov dword [0x7e20ea], edi
mov byte [0x7e20f8], 0x86
mov dword [ebp - 0x78], 0x1f4a1
mov byte [ebp - 0x79], 4
mov al, byte [ebp - 0x79]
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
je 0x401a5e
mov ecx, 0x192
mov dword [0x7e20d9], ebx
mov dword [esp - 0x18], edx
mov dword [0x7e20b2], ebx
mov dword [0x7e2076], edx
mov dword [0x7e20d9], ecx
mov dword [esp - 0x18], eax
mov ecx, ebx
mov byte [ebp - 0xd1], 0
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
jne 0x401a8a
mov dword [esp - 0xc], edi
mov dword [0x7e2073], ebx
mov esi, edi
call fcn.00402918
inc byte [ebp - 0xd1]
cmp byte [ebp - 0xd1], 3
jne 0x401a71
mov dword [ebp - 0x84], 0x1c48e
mov dword [ebp - 0x88], 0x1d9b2
mov eax, 0x401e44
mov dword [ebp - 0x8c], eax
mov eax, 0x401e68
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x84]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
jne 0x401b09
mov dword [0x7e2028], 0x13c09
mov dword [0x7e205d], edi
mov dword [0x7e20b7], edx
mov dword [0x7e207c], edi
mov dword [ebp - 0x94], 0x1ebcf
mov byte [ebp - 0x95], 7
mov al, byte [ebp - 0x95]
push eax
mov eax, dword [ebp - 0x94]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
jne 0x401b40
mov ebx, ecx
mov dword [0x7e20d6], esi
mov byte [0x7e2033], 0
mov dword [0x7e20d9], ecx
mov dword [esp - 0x18], eax
mov ecx, ebx
mov dword [0x7e2099], edi
dec esi
mov dword [esp - 0x20], edx
mov dword [0x7e2018], 0x12d9a
mov dword [ebp - 0x9c], 0x134a2
mov dword [ebp - 0xa0], 0x1b3cf
mov eax, 0x401e80
mov dword [ebp - 0xa4], eax
mov eax, 0x401e90
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x9c]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x401bc2
mov ebx, 0xa9
inc edx
xchg dword [esp - 0x10], esi
mov eax, edx
xchg dword [0x7e2094], ebx
call fcn.00402918
mov dword [0x7e2097], edi
mov dword [0x7e20f8], ebx
mov esi, 0x5e
mov dword [ebp - 0xac], 0x14437
mov dword [ebp - 0xb0], 0x123ad
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xac]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
test eax, eax
jne 0x401c22
mov byte [0x7e2021], 0xf6
mov dword [0x7e201b], eax
mov dword [0x7e20c9], esi
mov dword [0x7e2057], edi
mov dword [0x7e2100], ebx
mov ebx, 0x44
mov dword [0x7e2013], 0x11422
xchg dword [0x7e20d1], eax
lea ecx, [0x7e204d]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0xb4], 0x116c2
mov byte [ebp - 0xb5], 0xa0
mov al, byte [ebp - 0xb5]
push eax
mov eax, dword [ebp - 0xb4]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
jne 0x401c84
mov dword [0x7e20bf], ecx
mov dword [0x7e20e7], 0x128b7
mov dword [0x7e20ab], edx
mov dword [0x7e2025], ecx
mov byte [ebp - 0xd1], 0
cmp ebx, 0xffffffff
jge 0x401c97
mov ebx, esi
mov edi, 0x73
mov dword [0x7e2071], ecx
mov dword [0x7e2014], ebx
inc byte [0x7e20fc]
mov eax, 0x1c1
mov dword [ebp - 0xbc], 0x2d
mov eax, dword [0x7f3684]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
push eax
mov eax, dword [ebp - 0xbc]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
je 0x401cef
mov dword [0x7e20c3], ecx
mov dword [0x7e20b5], esi
mov word [0x7e2075], 0x1611
inc byte [ebp - 0xd1]
cmp byte [ebp - 0xd1], 3
jne 0x401c8b
mov dword [0x7e2041], ecx
mov dword [0x7e20bc], edi
mov byte [0x7e204e], 0x58
sub dword [0x7e201e], eax
mov eax, dword [ebp - 0xc4]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
mov dword [0x7e20bc], esi
mov esi, ecx
sub dword [0x7e2043], eax
mov dword [0x7e2042], edi
test ecx, ecx
je 0x401d47
mov dword [0x7e20e9], esi
add ebx, 0xe8
mov dword [esp - 0x1c], edx
mov dword [0x7e20fe], 0x118f9
mov dword [0x7e2050], eax
mov dword [0x7e208c], esi
mov eax, dword [ebp - 0xc8]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
je 0x401da2
mov byte [0x7e20ef], 5
dec edx
mov dword [esp - 0x24], esi
cmp word [0x7e20ba], 0
jle 0x401d8d
add dword [0x7e2104], eax
mov dword [0x7e20f8], edx
mov word [0x7e20c3], 0x1653
mov dword [0x7e2064], eax
mov dword [ebp - 0xcc], 0x1689a
mov dword [ebp - 0xd0], 0x1fcdc
mov eax, dword [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xcc]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
test eax, eax
jne 0x401de5
mov dword [0x7e2050], edx
mov dword [0x7e20ef], edi
lea edx, [0x7e203c]
mov dword [edx], 0x95
mov esp, ebp
pop ebp
ret