Function at 0x16f110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x24e2c9
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x16f4e0
push 0xd
mov edi, 0xf
push str._systemdrive_
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1ac], ebx
mov byte [ebp - 0x1bc], bl
call fcn.00162a60
mov dword [ebp - 4], ebx
push 0xe
push str._systemdrive__
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
call fcn.00162a60
mov byte [ebp - 4], 1
push 0x15
push str._systemdrive_windows
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
call fcn.00162a60
mov byte [ebp - 4], 2
push 0x16
push str._systemdrive_windows_
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
call fcn.00162a60
mov byte [ebp - 4], 3
push 0x26
push str._systemdrive_windows_system32drivers
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00162a60
mov byte [ebp - 4], 4
push 0x27
push str._systemdrive_windows_system32drivers_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00162a60
mov dword [ebp - 4], 5
push 0xd
push str._systemdrive_
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1e4], ebx
mov byte [ebp - 0x1f4], bl
call fcn.00162a60
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 0x114], bl
call fcn.001e6830
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
lea eax, [ebp - 0x114]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x16f2c5
sub eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00162a60
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1c8]
dec ecx
push ecx
push ebx
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x1d8]
call fcn.00164180
push eax
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 8
call fcn.00162870
mov byte [ebp - 4], 7
cmp dword [ebp - 0x218], 0x10
jb 0x16f32c
mov eax, dword [ebp - 0x22c]
push eax
call fcn.001e25e4
add esp, 4
lea esi, [ebp - 0x1bc]
mov dword [ebp - 0x230], 6
lea esp, [esp]
cmp dword [ebp - 0x1e0], 0x10
mov eax, dword [ebp - 0x1f4]
jae 0x16f355
lea eax, [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1e4]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.001629a0
cmp eax, 0xffffffff
je 0x16f3ae
cmp dword [ebp - 0x1c4], 0x10
mov edx, dword [ebp - 0x1d8]
jae 0x16f37f
lea edx, [ebp - 0x1d8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x16f384
sub eax, edi
push eax
push edx
mov edx, dword [ebp - 0x1e4]
push edx
push ebx
mov ecx, esi
call fcn.00180770
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00162c50
mov edi, 0xf
add esi, 0x1c
dec dword [ebp - 0x230]
jne 0x16f340
mov esi, dword [ebp - 0x234]
mov eax, esi
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x210], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x16f3d6
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x210]
call fcn.00162a60
xor edi, edi
lea esi, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x210]
mov eax, 0x10
cmp dword [ebp - 0x1fc], eax
jae 0x16f40d
lea ecx, [ebp - 0x210]
cmp dword [esi + 0x14], eax
jb 0x16f416
mov eax, dword [esi]
jmp 0x16f418
mov eax, esi
push ecx
push eax
call fcn.001e5001
add esp, 8
test eax, eax
je 0x16f4fe
inc edi
add esi, 0x1c
cmp edi, 6
jl 0x16f3f4
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x16f453
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.001e25e4
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 6
mov dword [ebp - 0x1fc], esi
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x210], bl
cmp dword [ebp - 0x1c4], edi
jb 0x16f485
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.001e25e4
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
cmp dword [ebp - 0x1e0], edi
jb 0x16f4b2
mov eax, dword [ebp - 0x1f4]
push eax
call fcn.001e25e4
add esp, 4
push fcn.0023c760
push 6
push 0x1c
lea ecx, [ebp - 0x1bc]
push ecx
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1e4], ebx
mov byte [ebp - 0x1f4], bl
mov dword [ebp - 4], 0xffffffff
call fcn.001e2ff3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x16f51e
mov eax, dword [ebp - 0x210]
push eax
call fcn.001e25e4
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 6
mov dword [ebp - 0x1fc], esi
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x210], bl
cmp dword [ebp - 0x1c4], edi
jb 0x16f550
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.001e25e4
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
cmp dword [ebp - 0x1e0], edi
jb 0x16f57d
mov edx, dword [ebp - 0x1f4]
push edx
call fcn.001e25e4
add esp, 4
push fcn.0023c760
push 6
push 0x1c
lea eax, [ebp - 0x1bc]
push eax
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1e4], ebx
mov byte [ebp - 0x1f4], bl
mov dword [ebp - 4], 0xffffffff
call fcn.001e2ff3
mov al, 1
jmp 0x16f4e2