Function at 0x40e549
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0d95
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20ac
call fcn.0057edb0
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2074], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2064], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x206c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2068], eax
xor ebx, ebx
mov dword [ebp - 0x205c], ebx
mov byte [ebp - 0x2056], bl
mov dword [ebp - 0x2070], 0x1000
mov dword [ebp - 0x207c], 0x18
mov dword [ebp - 0x2078], 0x1e
push 7
pop eax
mov dword [ebp - 0x2084], eax
mov dword [ebp - 0x2080], 0x1d
mov dword [ebp - 0x203c], eax
mov dword [ebp - 0x2040], ebx
xor eax, eax
mov word [ebp - 0x2050], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2060], ebx
cmp dword [ebp - 0x2060], 2
jae 0x40e6fa
mov byte [ebp - 4], 1
push str.Common_StartUp
lea esi, [ebp - 0x2038]
call fcn.00408172
mov byte [ebp - 4], 2
push dword [ebp - 0x2068]
push dword [ebp - 0x206c]
push dword [ebp + 0x10]
mov eax, esi
push eax
mov esi, dword [ebp - 0x2064]
call fcn.0040949b
mov byte [ebp - 4], 1
push ebx
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x2038]
call fcn.00409bf1
mov eax, dword [ebp - 0x2060]
push dword [ebp + eax*4 - 0x207c]
lea ecx, [ebp - 0x20a0]
call fcn.0040756f
pop ecx
mov byte [ebp - 4], 3
or dword [ebp - 0x205c], edi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.00409918
cmp dword [eax + 0x14], ebx
je 0x40e6a9
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2054]
call fcn.00404e33
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e6af
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], edi
test byte [ebp - 0x205c], 1
je 0x40e6cf
and dword [ebp - 0x205c], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0x20a0]
call fcn.00409bf1
cmp byte [ebp - 0x2055], bl
je 0x40e6de
mov byte [ebp - 0x2056], 1
mov dword [ebp - 4], ebx
jmp 0x40e6ef
inc dword [ebp - 0x2060]
jmp 0x40e600
mov dword [ebp - 0x2070], 0x1000
lea eax, [ebp - 0x2070]
push eax
lea eax, [ebp - 0x201c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x40e865
mov dword [ebp - 0x2060], ebx
mov edi, dword [ebp - 0x2060]
cmp edi, 2
jae 0x40e865
mov byte [ebp - 4], 5
lea eax, [ebp - 0x201c]
push eax
lea esi, [ebp - 0x2038]
call fcn.00408172
mov byte [ebp - 4], 6
push 0x691d50
mov eax, esi
push eax
call fcn.004081bf
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2054]
mov ecx, esi
call fcn.004097db
push 0x691d54
lea esi, [ebp - 0x20a0]
call fcn.00408172
mov byte [ebp - 4], 7
push dword [ebp - 0x2068]
push dword [ebp - 0x206c]
push dword [ebp + 0x10]
mov eax, esi
push eax
mov esi, dword [ebp - 0x2064]
call fcn.0040949b
mov byte [ebp - 4], 6
push ebx
push 1
lea esi, [ebp - 0x20a0]
call fcn.00409bf1
push dword [ebp + edi*4 - 0x2084]
lea edi, [ebp - 0x20bc]
call fcn.00407442
pop ecx
mov byte [ebp - 4], 8
or dword [ebp - 0x205c], 2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.00409918
cmp dword [eax + 0x14], ebx
je 0x40e7fd
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2038]
call fcn.00404e33
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e803
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], 6
test byte [ebp - 0x205c], 2
je 0x40e828
and dword [ebp - 0x205c], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x20bc]
call fcn.00409bf1
cmp byte [ebp - 0x2055], bl
je 0x40e837
mov byte [ebp - 0x2056], 1
mov byte [ebp - 4], 5
push ebx
push 1
lea esi, [ebp - 0x2038]
call fcn.00409bf1
mov dword [ebp - 4], ebx
jmp 0x40e85a
inc dword [ebp - 0x2060]
jmp 0x40e726
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x2054]
call fcn.00409bf1
mov al, byte [ebp - 0x2056]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005796dc
leave
ret