Function at 0x4ecf98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.0052b4f0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4ecfeb
push ebx
call fcn.005295db
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4ed000
mov dword [ebp + 8], 3
cmp dword [ebp + 8], 1
jl 0x4ed01b
cmp dword [ebp + 8], 8
jg 0x4ed01b
mov eax, 1
jmp 0x4ed020
mov eax, 0
test eax, eax
je 0x4ed0f7
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x4ed035
cmp eax, 9
jl 0x4ed04c
push 0x117
push 0x4028aa3
push 9
call fcn.005295e1
add esp, 0xc
dec eax
call 0x4ed052
pop ebx
add ebx, dword [eax*4 + 0x95830c]
jmp ebx
cmp dword [ebp + 8], 9
jne 0x4ed149
mov dword [ebp - 0x10], esp
push 0x104
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4ed132
push 0x24e
push 0x4028aa3
push 6
call fcn.005295e1
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x4ed241
cmp dword [ebp + 8], 0xa
jne 0x4ed19b
mov dword [ebp - 0x10], esp
push 0x104
push dword [ebp - 4]
call dword [0x98926b]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4ed184
push 0x2de
push 0x4028aa3
push 6
call fcn.005295e1
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x4ed241
cmp dword [ebp + 8], 0xb
jne 0x4ed1ed
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0x104
call dword [0x98926f]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4ed1d6
push 0x36e
push 0x4028aa3
push 6
call fcn.005295e1
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x4ed241
cmp dword [ebp + 8], 0xc
jne 0x4ed241
mov dword [ebp - 0x10], esp
push 0
push 0x20
push dword [ebp - 4]
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4ed232
push 0x3e5
push 0x4028aa3
push 6
call fcn.005295e1
add esp, 0xc
test eax, eax
je 0x4ed241
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x4ed309
push 0x80000301
push 0
push 1
push SysStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4ed26a
mov eax, 0x7f6c38
push eax
push 2
mov ebx, 0x138
call fcn.0052a3d0
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0x7f77dd
push dword [ebp - 0x10]
call fcn.0049547f
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4ed2ae
push ebx
call fcn.005295db
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4ed2e8
push 0x7f77dd
push dword [ebp - 4]
mov ecx, 2
call fcn.00495423
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4ed2e4
push ebx
call fcn.005295db
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ed304
push eax
mov ebx, eax
call fcn.004953b8
inc eax
push eax
call fcn.005295d5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4ed313
mov eax, 0x7f6c38
jmp 0x4ed313
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4ed324
push ebx
call fcn.005295db
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8