Function at 0x4faec4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6b
push 0
push 0
dec ecx
jne 0x4faecc
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x4fb2c5
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.0046271c
mov dl, 1
mov eax, dword [0x458670]
call fcn.00458770
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fb25c
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, 0x4fb2dc
mov eax, dword [ebp - 4]
call fcn.00458954
test al, al
je 0x4fb246
lea eax, [ebp - 0x110]
mov ecx, 0x20
mov edx, 0x104
call fcn.00402d20
push 0x104
lea ecx, [ebp - 0x110]
mov edx, 0x4fb334
mov eax, dword [ebp - 4]
call fcn.004590e4
mov bx, 1
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x111], 0
jne 0x4fb23b
movzx eax, bx
cmp byte [ebp + eax - 0x110], 0
je 0x4fb246
jmp 0x4faf94
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x111], 0
jne 0x4fafa8
cmp bx, 0x104
jb 0x4faf93
cmp bx, 0x104
jae 0x4fb23b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20c]
call fcn.004625e8
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 0x4fb023
lea eax, [ebp - 0x220]
mov edx, esi
call fcn.00403fdc
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 8]
call fcn.004620bc
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 0x4fb34c
lea eax, [ebp - 0x22c]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x22c]
push 0x4fb360
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00404164
mov eax, dword [ebp - 0x224]
call fcn.00409558
test al, al
je 0x4fb0e1
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x214]
call fcn.00403fdc
push dword [ebp - 0x234]
push 0x4fb34c
lea eax, [ebp - 0x238]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x238]
push 0x4fb360
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 0x4fb1bd
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 0x4fb370
lea eax, [ebp - 0x344]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x344]
push 0x4fb360
lea eax, [ebp - 0x23c]
mov edx, 4
call fcn.00404164
mov eax, dword [ebp - 0x23c]
call fcn.00409558
test al, al
je 0x4fb1ad
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 0x4fb370
lea eax, [ebp - 0x350]
mov edx, esi
call fcn.00403fdc
push dword [ebp - 0x350]
push 0x4fb360
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 0x4fb1bd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, 0x4fb37c
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, 0x4fb360
call fcn.004041b4
jne 0x4fb231
lea edx, [ebp - 8]
mov eax, dword [ebp - 8]
call fcn.0046215c
jmp 0x4fb23b
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046215c
cmp bx, 0x104
jb 0x4faf6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb263
mov eax, dword [ebp - 4]
call fcn.004030bc
ret