Function at 0x40e4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba1d2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20ac
call fcn.00578bc0
mov eax, dword [0x6b06f8]
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 0x40e671
mov byte [ebp - 4], 1
push str.Common_StartUp
lea esi, [ebp - 0x2038]
call fcn.004081bb
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.00409548
mov byte [ebp - 4], 1
push ebx
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x2038]
call fcn.00409c0f
mov eax, dword [ebp - 0x2060]
push dword [ebp + eax*4 - 0x207c]
lea ecx, [ebp - 0x20a0]
call fcn.004075c1
pop ecx
mov byte [ebp - 4], 3
or dword [ebp - 0x205c], edi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.00409936
cmp dword [eax + 0x14], ebx
je 0x40e620
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2054]
call fcn.00404e53
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e626
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], edi
test byte [ebp - 0x205c], 1
je 0x40e646
and dword [ebp - 0x205c], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0x20a0]
call fcn.00409c0f
cmp byte [ebp - 0x2055], bl
je 0x40e655
mov byte [ebp - 0x2056], 1
mov dword [ebp - 4], ebx
jmp 0x40e666
inc dword [ebp - 0x2060]
jmp 0x40e577
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 0x40e7dc
mov dword [ebp - 0x2060], ebx
mov edi, dword [ebp - 0x2060]
cmp edi, 2
jae 0x40e7dc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x201c]
push eax
lea esi, [ebp - 0x2038]
call fcn.004081bb
mov byte [ebp - 4], 6
push 0x670fe8
mov eax, esi
push eax
call fcn.00408208
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2054]
mov ecx, esi
call fcn.004097f9
push str.DefaultUser_StartUp
lea esi, [ebp - 0x20a0]
call fcn.004081bb
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.00409548
mov byte [ebp - 4], 6
push ebx
push 1
lea esi, [ebp - 0x20a0]
call fcn.00409c0f
push dword [ebp + edi*4 - 0x2084]
lea edi, [ebp - 0x20bc]
call fcn.00407494
pop ecx
mov byte [ebp - 4], 8
or dword [ebp - 0x205c], 2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2054]
call fcn.00409936
cmp dword [eax + 0x14], ebx
je 0x40e774
push dword [ebp - 0x2074]
lea ecx, [ebp - 0x2038]
call fcn.00404e53
pop ecx
test al, al
mov byte [ebp - 0x2055], 1
jne 0x40e77a
mov byte [ebp - 0x2055], bl
mov dword [ebp - 4], 6
test byte [ebp - 0x205c], 2
je 0x40e79f
and dword [ebp - 0x205c], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x20bc]
call fcn.00409c0f
cmp byte [ebp - 0x2055], bl
je 0x40e7ae
mov byte [ebp - 0x2056], 1
mov byte [ebp - 4], 5
push ebx
push 1
lea esi, [ebp - 0x2038]
call fcn.00409c0f
mov dword [ebp - 4], ebx
jmp 0x40e7d1
inc dword [ebp - 0x2060]
jmp 0x40e69d
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x2054]
call fcn.00409c0f
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.0057372c
leave
ret