Function at 0x4174b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff24
mov byte [ebp - 0x81], 0
mov dword [0x4220d9], edi
cmp word [0x422099], 0
jg 0x4174ee
mov dword [0x42204a], ebx
mov dword [0x4220ed], edi
mov dword [0x42204d], 0x15e80
mov dword [0x422053], 0x1621d
mov word [0x4220be], 0xe3ce
mov dword [esp - 0xc], ebx
mov dword [0x4220f2], edi
mov dword [0x4220a7], 0x15bdd
cmp byte [0x4220e4], 0
jle 0x417536
mov dword [0x422073], edx
mov dword [0x4220b4], ebx
mov dword [0x422083], esi
mov dword [0x42206e], edi
sub dword [0x42207f], edx
inc byte [0x4220d6]
mov dword [0x42201d], ebx
mov dword [0x422090], eax
mov dword [0x4220ea], 0x114e6
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0x14406
mov dword [ebp - 0x10], 0x1778c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenGroups
test eax, eax
jne 0x4175aa
mov dword [0x42201c], edi
mov dword [esp - 0x10], edx
lea eax, [0x4220c3]
sub dword [eax], 0xbe
add dword [0x4220ec], edx
mov dword [0x422066], 0x17159
mov dword [0x422012], ebx
mov edx, 0x159
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 2
jne 0x4174c8
mov byte [0x422057], 0x94
test edx, edx
jne 0x4175ee
mov word [0x422014], 0xcdd2
jmp 0x4175f4
mov dword [0x422076], eax
mov dword [0x4220ed], ebx
push ebx
push ebx
push 1
call fcn.00401020
call sub.kernel32.dll_AreFileApisANSI
mov byte [ebp - 0x81], 0
call sub.kernel32.dll_AreFileApisANSI
mov dword [esp - 0x10], eax
mov word [0x42207d], 0x2101
mov dword [0x42203f], edi
mov dword [0x42202e], edx
mov dword [0x422084], ebx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 1
jne 0x41760f
and eax, 9
mov edx, dword [0x4220b4]
mov edi, 0x19
mov dword [ebp - 0x14], 0x1e
mov eax, dword [0x423820]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x4176a4
mov edx, dword [0x4220a6]
cmp word [0x422105], 0
je 0x417686
sub esi, dword [0x4220ee]
mov ebx, eax
mov dword [0x422060], 0x1729b
mov dword [0x422096], edx
xchg dword [0x422104], edi
mov dword [0x4220e4], eax
call fcn.004016fc
mov byte [0x42201a], 0x14
mov dword [0x4220f5], edi
and edx, dword [0x4220e5]
mov dword [0x4220c0], esi
xchg dword [0x422100], eax
cmp byte [0x422015], 0
jge 0x4176dd
mov dword [0x4220ea], edx
mov dword [0x422030], ecx
mov dword [0x42202a], 0x14778
xchg dword [0x4220df], esi
mov dword [0x422017], 0x1186e
mov dword [0x422109], eax
mov byte [0x4220b1], 0xf6
sub dword [0x42206f], esi
mov eax, 0x417c58
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0x1f028
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ObjectPrivilegeAuditAlarmA
test eax, eax
jne 0x417758
mov dword [0x4220fb], ebx
sub edx, 0x57
mov dword [0x422071], esi
mov byte [0x42201a], 0x14
mov dword [0x4220f5], edi
and edx, dword [0x4220e5]
mov dword [0x4220c0], esi
xchg dword [0x422100], eax
mov dword [ebp - 0x30], 0x1ac80
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SetCaretBlinkTime
inc ecx
mov dword [0x42208e], edi
test ecx, ecx
je 0x41779d
mov dword [0x422096], esi
mov ebx, 0x179
inc dword [0x4220d6]
mov dword [0x422022], ecx
mov dword [0x4220dd], eax
mov dword [0x4220a2], ebx
call sub.kernel32.dll_AreFileApisANSI
cmp edx, 0xffffffff
jge 0x4177d7
mov dword [0x42206b], ecx
mov dword [0x4220c8], eax
mov dword [0x42208b], edi
mov dword [0x4220c1], esi
mov dword [0x4220de], eax
mov byte [0x422077], 0x6c
mov dword [0x422029], ebx
mov dword [0x422064], esi
cmp edi, 0xffffffff
je 0x4177ff
and dword [0x422076], esi
mov eax, dword [esp + 8]
mov byte [0x4220ce], 0xf5
mov word [0x4220a8], 0x3e7
and dword [0x422087], ebx
mov dword [0x4220ea], 0x12c22
mov dword [0x42204e], ecx
add edi, edx
push 0x422075
push ebx
push ecx
call fcn.00401020
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x34], 0x3d
mov eax, dword [0x423820]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x417876
mov dword [esp - 8], ecx
xchg dword [esp - 4], esi
lea ecx, [0x422043]
and dword [ecx], edx
mov dword [0x42206a], edi
mov dword [0x4220cc], ecx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 1
jne 0x41783a
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x3c], 0x162bd
mov eax, dword [ebp - 0x3c]
push eax
call sub.user32.dll_SetCaretBlinkTime
test eax, eax
jne 0x4178b3
mov dword [0x422092], edi
and ebx, 0xb
mov dword [esp - 0x28], edx
mov dword [0x4220c8], esi
call fcn.004016fc
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 1
jne 0x41788c
push esi
push 0
push 0x422032
call fcn.00401020
mov dword [0x422040], eax
cmp word [ebp + 4], 0
jge 0x417901
mov dword [0x4220fd], edi
lea eax, [0x42206c]
mov dword [eax], 1
add ecx, 0x84
mov dword [0x422067], edi
jmp 0x417924
mov esi, dword [esp + 8]
mov dword [0x422092], edx
mov word [0x42201c], 0xd640
mov dword [0x4220bc], 0x17f77
add dword [0x42209c], ecx
mov dword [0x4220cb], edi
lea ecx, [0x4220df]
mov dword [ecx + 0x20], 0x78
mov dword [0x42206f], eax
mov dword [ebp - 0x40], 0x12
mov eax, dword [0x423820]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x417973
mov dword [0x422019], 0x14dbe
sub ecx, dword [0x422046]
mov dword [0x422104], edi
mov byte [0x42201a], 0x14
mov dword [0x4220f5], edi
and edx, dword [0x4220e5]
mov dword [0x4220c0], esi
xchg dword [0x422100], eax
push 1
call fcn.00401020
test ecx, ecx
jne 0x4179c3
and dword [0x4220e9], edi
mov dword [0x4220c0], 0x17ab1
mov dword [0x42209a], 0x17655
mov dword [0x4220ca], edi
mov dword [0x422073], ebx
mov word [0x4220cf], 0x2ce7
mov byte [0x422094], 0x12
mov word [0x422078], 0xd906
mov dword [esp - 0x24], edx
mov dword [esp - 0xc], ecx
cmp dword [0x422075], 0
jne 0x417a05
add dword [0x4220f2], ecx
mov dword [0x422043], 0x17cd6
mov dword [0x422090], edi
jmp 0x417a11
mov dword [0x4220d6], edx
sub dword [0x422019], edi
call sub.kernel32.dll_AreFileApisANSI
mov byte [0x4220c7], 5
lea esi, [0x42208b]
mov dword [esi], edi
mov dword [0x422036], 0x133d4
xchg dword [esp - 0x20], edx
mov edx, 0x4220ac
call fcn.00401020
mov dword [ebp - 0x48], 0xc
mov eax, dword [0x423820]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x417a78
mov dword [0x4220da], 0x17fc9
xchg dword [0x4220fd], esi
mov dword [0x42209a], 0x10826
dec eax
call fcn.004172e4
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x50], 9
mov eax, dword [0x423820]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x417abb
mov word [0x4220b2], 0x3f39
mov eax, ecx
sub esi, ecx
mov dword [0x422022], 0x153e7
mov byte [0x422057], 0x94
test edx, edx
jne 0x417ad1
mov word [0x422014], 0xcdd2
jmp 0x417ad7
mov dword [0x422076], eax
mov dword [0x4220ed], ebx
inc byte [ebp - 0x81]
cmp byte [ebp - 0x81], 2
jne 0x417a84
cmp dword [esp + 8], eax
jle 0x417af9
mov ebx, 0xfc
jmp 0x417b11
and dword [0x4220ad], esi
mov edi, edx
lea ebx, [0x42206b]
mov dword [ebx + 0x24], 0x7b
and esi, 0x53
mov dword [0x422026], edx
mov dword [0x4220a8], edi
mov dword [0x4220d0], ecx
call sub.kernel32.dll_AreFileApisANSI
mov dword [0x42203d], esi
mov edi, 0x7b
mov dword [esp - 0x10], edx
mov dword [ebp - 0x58], 0x28
mov eax, dword [0x423820]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [esp - 4], esi
cmp dword [0x4220c4], ecx
jl 0x417b6d
mov dword [0x4220ea], ebx
mov dword [0x422040], esi
jmp 0x417b79
mov dword [0x4220cd], edi
mov dword [0x4220ff], eax
mov dword [0x4220eb], edx
mov dword [0x4220b6], esi
mov word [0x42209f], 0x7c1d
mov eax, 0x417c68
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 0x1e6a3
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.advapi32.dll_ObjectPrivilegeAuditAlarmA
test eax, eax
jne 0x417be5
mov dword [0x4220dd], 0x14223
mov dword [0x422027], eax
mov dword [0x4220cb], 0x117ff
xchg dword [0x4220f4], eax
mov ebx, edi
mov dword [esp - 0x24], esi
mov ecx, dword [esp + 0x20]
mov edx, 0xdc
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], 0x16269
mov dword [ebp - 0x80], 0x15b36
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.advapi32.dll_AdjustTokenGroups
test eax, eax
jne 0x417c51
mov dword [0x4220d5], ecx
add dword [0x422086], edx
mov esi, edi
mov word [0x422067], 0x2004
mov dword [0x4220ec], eax
mov esp, ebp
pop ebp
ret