Function at 0x40e487
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9ee2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20ac
call fcn.005788a0
mov eax, dword [0x6bd6f8]
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 0x40e638
mov byte [ebp - 4], 1
push str.Common_StartUp
lea esi, [ebp - 0x2038]
call fcn.00408187
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.0040951b
mov byte [ebp - 4], 1
push ebx
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x2038]
call fcn.00409bbf
mov eax, dword [ebp - 0x2060]
push dword [ebp + eax*4 - 0x207c]
lea ecx, [ebp - 0x20a0]
call fcn.004075a4
pop ecx
mov byte [ebp - 4], 3
or dword [ebp - 0x205c], edi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.004098e6
cmp dword [eax + 0x14], ebx
je 0x40e5e7
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2054]
call fcn.00404e39
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e5ed
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], edi
test byte [ebp - 0x205c], 1
je 0x40e60d
and dword [ebp - 0x205c], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0x20a0]
call fcn.00409bbf
cmp byte [ebp - 0x2055], bl
je 0x40e61c
mov byte [ebp - 0x2056], 1
mov dword [ebp - 4], ebx
jmp 0x40e62d
inc dword [ebp - 0x2060]
jmp 0x40e53e
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 0x40e7a3
mov dword [ebp - 0x2060], ebx
mov edi, dword [ebp - 0x2060]
cmp edi, 2
jae 0x40e7a3
mov byte [ebp - 4], 5
lea eax, [ebp - 0x201c]
push eax
lea esi, [ebp - 0x2038]
call fcn.00408187
mov byte [ebp - 4], 6
push 0x68a698
mov eax, esi
push eax
call fcn.004081d4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2054]
mov ecx, esi
call fcn.004097a9
push 0x68a69c
lea esi, [ebp - 0x20a0]
call fcn.00408187
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.0040951b
mov byte [ebp - 4], 6
push ebx
push 1
lea esi, [ebp - 0x20a0]
call fcn.00409bbf
push dword [ebp + edi*4 - 0x2084]
lea edi, [ebp - 0x20bc]
call fcn.00407477
pop ecx
mov byte [ebp - 4], 8
or dword [ebp - 0x205c], 2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.004098e6
cmp dword [eax + 0x14], ebx
je 0x40e73b
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2038]
call fcn.00404e39
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e741
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], 6
test byte [ebp - 0x205c], 2
je 0x40e766
and dword [ebp - 0x205c], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x20bc]
call fcn.00409bbf
cmp byte [ebp - 0x2055], bl
je 0x40e775
mov byte [ebp - 0x2056], 1
mov byte [ebp - 4], 5
push ebx
push 1
lea esi, [ebp - 0x2038]
call fcn.00409bbf
mov dword [ebp - 4], ebx
jmp 0x40e798
inc dword [ebp - 0x2060]
jmp 0x40e664
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x2054]
call fcn.00409bbf
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.0057340c
leave
ret