Function at 0x40e2e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9221
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20ac
call fcn.00586dc0
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 0x40e499
mov byte [ebp - 4], 1
push str.Common_StartUp
lea esi, [ebp - 0x2038]
call fcn.0040820f
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.004095a3
mov byte [ebp - 4], 1
push ebx
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x2038]
call fcn.00409da6
mov eax, dword [ebp - 0x2060]
push dword [ebp + eax*4 - 0x207c]
lea ecx, [ebp - 0x20a0]
call fcn.00407543
pop ecx
mov byte [ebp - 4], 3
or dword [ebp - 0x205c], edi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.00409acd
cmp dword [eax + 0x14], ebx
je 0x40e448
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2054]
call fcn.00404dd5
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e44e
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], edi
test byte [ebp - 0x205c], 1
je 0x40e46e
and dword [ebp - 0x205c], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0x20a0]
call fcn.00409da6
cmp byte [ebp - 0x2055], bl
je 0x40e47d
mov byte [ebp - 0x2056], 1
mov dword [ebp - 4], ebx
jmp 0x40e48e
inc dword [ebp - 0x2060]
jmp 0x40e39f
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 0x40e604
mov dword [ebp - 0x2060], ebx
mov edi, dword [ebp - 0x2060]
cmp edi, 2
jae 0x40e604
mov byte [ebp - 4], 5
lea eax, [ebp - 0x201c]
push eax
lea esi, [ebp - 0x2038]
call fcn.0040820f
mov byte [ebp - 4], 6
push 0x6810d0
mov eax, esi
push eax
call fcn.0040825c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2054]
mov ecx, esi
call fcn.00409990
push str.DefaultUser_StartUp
lea esi, [ebp - 0x20a0]
call fcn.0040820f
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.004095a3
mov byte [ebp - 4], 6
push ebx
push 1
lea esi, [ebp - 0x20a0]
call fcn.00409da6
push dword [ebp + edi*4 - 0x2084]
lea edi, [ebp - 0x20bc]
call fcn.00407416
pop ecx
mov byte [ebp - 4], 8
or dword [ebp - 0x205c], 2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.00409acd
cmp dword [eax + 0x14], ebx
je 0x40e59c
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2038]
call fcn.00404dd5
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e5a2
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], 6
test byte [ebp - 0x205c], 2
je 0x40e5c7
and dword [ebp - 0x205c], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x20bc]
call fcn.00409da6
cmp byte [ebp - 0x2055], bl
je 0x40e5d6
mov byte [ebp - 0x2056], 1
mov byte [ebp - 4], 5
push ebx
push 1
lea esi, [ebp - 0x2038]
call fcn.00409da6
mov dword [ebp - 4], ebx
jmp 0x40e5f9
inc dword [ebp - 0x2060]
jmp 0x40e4c5
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x2054]
call fcn.00409da6
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.00581268
leave
ret