Function at 0x4220a8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x203c]
mov eax, 0x203c
call fcn.0048bdb0
push 0xffffffffffffffff
push 0x4b5041
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x2038], 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 + 0x2044]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x2048]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x204c]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x12], bl
mov dword [ebp - 0x2c], 0x1000
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], 0x1e
push 7
pop eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x1d
mov dword [ebp + 0x18], eax
push ebx
lea ecx, [ebp]
call fcn.004069e2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x1c]
cmp edi, 2
jae 0x4221fb
mov byte [ebp - 4], 1
push str.Common_StartUp
lea ecx, [ebp + 0x1c]
call fcn.004040cf
mov byte [ebp - 4], 2
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp + 0x1c]
push eax
mov esi, dword [ebp - 0x20]
call fcn.00420cfd
mov byte [ebp - 4], 1
push ebx
xor esi, esi
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.00405617
push dword [ebp + edi*4 - 0x38]
lea edi, [ebp - 0x5c]
call fcn.0041fd4d
pop ecx
mov byte [ebp - 4], 3
or dword [ebp - 0x18], esi
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
call fcn.00405560
cmp dword [eax + 0x14], ebx
je 0x4221bf
push dword [ebp - 0x30]
lea ecx, [ebp]
call fcn.0041e391
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x4221c2
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], esi
test byte [ebp - 0x18], 1
je 0x4221d9
and dword [ebp - 0x18], 0xfffffffe
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00405617
cmp byte [ebp - 0x11], bl
je 0x4221e2
mov byte [ebp - 0x12], 1
mov dword [ebp - 4], ebx
jmp 0x4221f3
inc dword [ebp - 0x1c]
jmp 0x422142
mov dword [ebp - 0x2c], 0x1000
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x422314
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 2
jae 0x422314
mov byte [ebp - 4], 5
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004040cf
mov byte [ebp - 4], 6
push 0x4c5c2c
lea eax, [ebp + 0x1c]
push eax
call fcn.00420b43
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
lea esi, [ebp + 0x1c]
call fcn.00420d36
push str.DefaultUser_StartUp
lea ecx, [ebp - 0x5c]
call fcn.004040cf
mov byte [ebp - 4], 7
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x5c]
push eax
mov esi, dword [ebp - 0x20]
call fcn.00420cfd
mov byte [ebp - 4], 6
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00405617
mov eax, dword [ebp - 0x1c]
push dword [ebp + eax*4 - 0x40]
lea esi, [ebp - 0x78]
call fcn.0041fc2c
pop ecx
mov byte [ebp - 4], 8
or dword [ebp - 0x18], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
call fcn.00405560
cmp dword [eax + 0x14], ebx
je 0x4222c4
push dword [ebp - 0x30]
lea ecx, [ebp + 0x1c]
call fcn.0041e391
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x4222c7
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 6
test byte [ebp - 0x18], 2
je 0x4222e3
and dword [ebp - 0x18], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.00405617
cmp byte [ebp - 0x11], bl
je 0x4222ec
mov byte [ebp - 0x12], 1
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00405617
mov dword [ebp - 4], ebx
jmp 0x42230c
inc dword [ebp - 0x1c]
jmp 0x42221b
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.00405617
mov al, byte [ebp - 0x12]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2038]
xor ecx, ebp
call fcn.00488689
add ebp, 0x203c
leave
ret