Function at 0x4faee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6b
push 0
push 0
dec ecx
jne 0x4faee8
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x4fb2e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x2fc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20c]
call fcn.00462710
mov dl, 1
mov eax, dword [0x458670]
call fcn.00458770
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fb278
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00458810
xor ecx, ecx
mov edx, 0x4fb2f8
mov eax, dword [ebp - 4]
call fcn.00458954
test al, al
je 0x4fb262
lea eax, [ebp - 0x110]
mov ecx, 0x20
mov edx, 0x104
call fcn.00402d20
push 0x104
lea ecx, [ebp - 0x110]
mov edx, 0x4fb350
mov eax, dword [ebp - 4]
call fcn.004590e4
mov bx, 1
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x111], 0
jne 0x4fb257
movzx eax, bx
cmp byte [ebp + eax - 0x110], 0
je 0x4fb262
jmp 0x4fafb0
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x111], 0
jne 0x4fafc4
cmp bx, 0x104
jb 0x4fafaf
cmp bx, 0x104
jae 0x4fb257
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20c]
call fcn.004625dc
mov dword [ebp - 8], eax
movzx eax, bx
lea esi, [ebp + eax - 0x111]
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.00403fdc
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.004091ac
mov eax, dword [ebp - 0x218]
call fcn.00404268
mov esi, eax
mov eax, esi
call fcn.00409a80
add bx, ax
dec ebx
test esi, esi
je 0x4fb03f
lea eax, [ebp - 0x220]
mov edx, esi
call fcn.00403fdc
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 8]
call fcn.004620b0
push 0x104
lea eax, [ebp - 0x214]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x214]
call fcn.00403fdc
push dword [ebp - 0x228]
push 0x4fb368
lea eax, [ebp - 0x22c]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x22c]
push 0x4fb37c
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00404164
mov eax, dword [ebp - 0x224]
call fcn.00409558
test al, al
je 0x4fb0fd
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x214]
call fcn.00403fdc
push dword [ebp - 0x234]
push 0x4fb368
lea eax, [ebp - 0x238]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x238]
push 0x4fb37c
lea eax, [ebp - 0x230]
mov edx, 4
call fcn.00404164
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4fb1d9
lea eax, [ebp - 0x340]
lea edx, [ebp - 0x214]
call fcn.00402eb4
lea edx, [ebp - 0x340]
lea eax, [ebp - 0x240]
call fcn.00404048
push dword [ebp - 0x240]
push 0x4fb38c
lea eax, [ebp - 0x344]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x344]
push 0x4fb37c
lea eax, [ebp - 0x23c]
mov edx, 4
call fcn.00404164
mov eax, dword [ebp - 0x23c]
call fcn.00409558
test al, al
je 0x4fb1c9
lea eax, [ebp - 0x340]
lea edx, [ebp - 0x214]
call fcn.00402eb4
lea edx, [ebp - 0x340]
lea eax, [ebp - 0x34c]
call fcn.00404048
push dword [ebp - 0x34c]
push 0x4fb38c
lea eax, [ebp - 0x350]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x350]
push 0x4fb37c
lea eax, [ebp - 0x348]
mov edx, 4
call fcn.00404164
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4fb1d9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, 0x4fb398
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x358]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x358]
call fcn.00404268
mov esi, eax
lea ecx, [ebp - 0x35c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x35c]
call fcn.00404268
call fcn.00409a80
add esi, eax
mov edx, esi
sub edx, 4
lea eax, [ebp - 0x354]
call fcn.00403fdc
mov eax, dword [ebp - 0x354]
mov edx, 0x4fb37c
call fcn.004041b4
jne 0x4fb24d
lea edx, [ebp - 8]
mov eax, dword [ebp - 8]
call fcn.00462150
jmp 0x4fb257
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00462150
cmp bx, 0x104
jb 0x4faf8a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb27f
mov eax, dword [ebp - 4]
call fcn.004030bc
ret