Function at 0x421116
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x203c]
mov eax, 0x203c
call fcn.0048ae10
push 0xffffffffffffffff
push 0x4b17b5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d9114]
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.00406102
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x1c]
cmp edi, 2
jae 0x421269
mov byte [ebp - 4], 1
push str.Common_StartUp
lea ecx, [ebp + 0x1c]
call fcn.004040b1
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.0041fd0e
mov byte [ebp - 4], 1
push ebx
xor esi, esi
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040515f
push dword [ebp + edi*4 - 0x38]
lea edi, [ebp - 0x5c]
call fcn.0041ed5e
pop ecx
mov byte [ebp - 4], 3
or dword [ebp - 0x18], esi
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
call fcn.004050a8
cmp dword [eax + 0x14], ebx
je 0x42122d
push dword [ebp - 0x30]
lea ecx, [ebp]
call fcn.0041d3a2
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x421230
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], esi
test byte [ebp - 0x18], 1
je 0x421247
and dword [ebp - 0x18], 0xfffffffe
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040515f
cmp byte [ebp - 0x11], bl
je 0x421250
mov byte [ebp - 0x12], 1
mov dword [ebp - 4], ebx
jmp 0x421261
inc dword [ebp - 0x1c]
jmp 0x4211b0
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 0x421382
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 2
jae 0x421382
mov byte [ebp - 4], 5
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004040b1
mov byte [ebp - 4], 6
push 0x4c2ce4
lea eax, [ebp + 0x1c]
push eax
call fcn.0041fb54
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
lea esi, [ebp + 0x1c]
call fcn.0041fd47
push str.DefaultUser_StartUp
lea ecx, [ebp - 0x5c]
call fcn.004040b1
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.0041fd0e
mov byte [ebp - 4], 6
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040515f
mov eax, dword [ebp - 0x1c]
push dword [ebp + eax*4 - 0x40]
lea esi, [ebp - 0x78]
call fcn.0041ec3d
pop ecx
mov byte [ebp - 4], 8
or dword [ebp - 0x18], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
call fcn.004050a8
cmp dword [eax + 0x14], ebx
je 0x421332
push dword [ebp - 0x30]
lea ecx, [ebp + 0x1c]
call fcn.0041d3a2
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x421335
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 6
test byte [ebp - 0x18], 2
je 0x421351
and dword [ebp - 0x18], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.0040515f
cmp byte [ebp - 0x11], bl
je 0x42135a
mov byte [ebp - 0x12], 1
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040515f
mov dword [ebp - 4], ebx
jmp 0x42137a
inc dword [ebp - 0x1c]
jmp 0x421289
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.0040515f
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.004876e8
add ebp, 0x203c
leave
ret