Function at 0x431770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4020
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20ac
call fcn.004ae340
mov eax, dword [0x5000f4]
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 - 0x2064], eax
mov dword [ebp - 0x2070], ecx
mov dword [ebp - 0x206c], edx
xor edi, edi
mov dword [ebp - 0x205c], edi
mov dword [ebp - 0x2068], edi
mov byte [ebp - 0x2055], 0
mov dword [ebp - 0x2074], 0x1000
mov dword [ebp - 0x207c], 0x18
mov dword [ebp - 0x2078], 0x1e
mov eax, 7
mov dword [ebp - 0x2084], eax
mov dword [ebp - 0x2080], 0x1d
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x2024], edi
xor eax, eax
mov word [ebp - 0x2034], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x2060], edi
cmp edi, 2
jae 0x431915
mov byte [ebp - 4], 1
push 0x4ea140
lea ecx, [ebp - 0x2054]
call fcn.00405c10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2068]
push ecx
lea edx, [ebp - 0x2054]
push edx
mov edx, dword [ebp - 0x206c]
mov esi, dword [ebp - 0x2070]
call fcn.0042eee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2054]
call fcn.00405c80
mov ecx, dword [ebp + edi*4 - 0x207c]
lea esi, [ebp - 0x20a0]
call fcn.0042c500
mov byte [ebp - 4], 3
mov esi, 1
or dword [ebp - 0x205c], esi
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2038]
call fcn.00407c60
cmp dword [eax + 0x14], 0
je 0x4318c4
mov eax, dword [ebp - 0x2064]
push eax
lea ecx, [ebp - 0x2038]
call fcn.00428a80
add esp, 4
test al, al
je 0x4318c4
mov bl, 1
jmp 0x4318c6
xor bl, bl
mov dword [ebp - 4], esi
test byte [ebp - 0x205c], 1
je 0x4318e4
and dword [ebp - 0x205c], 0xfffffffe
lea ecx, [ebp - 0x20a0]
call fcn.00405c80
test bl, bl
je 0x4318ef
mov byte [ebp - 0x2055], 1
mov dword [ebp - 4], 0
inc edi
jmp 0x43181b
mov dword [ebp - 0x2074], 0x1000
lea ecx, [ebp - 0x2074]
push ecx
lea edx, [ebp - 0x201c]
push edx
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x431a84
xor edi, edi
mov dword [ebp - 0x2060], edi
cmp edi, 2
jae 0x431a84
mov byte [ebp - 4], 5
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2054]
call fcn.00405c10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2054]
push ecx
mov edx, 0x4ea160
call fcn.0042ddd0
push 0
lea edx, [ebp - 0x2038]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2054]
call fcn.0042ef20
push 0x4ea164
lea ecx, [ebp - 0x20a0]
call fcn.00405c10
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2068]
push eax
lea ecx, [ebp - 0x20a0]
push ecx
mov edx, dword [ebp - 0x206c]
mov esi, dword [ebp - 0x2070]
call fcn.0042eee0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20a0]
call fcn.00405c80
mov ecx, dword [ebp + edi*4 - 0x2084]
lea edx, [ebp - 0x20bc]
call fcn.0042c390
mov byte [ebp - 4], 8
or dword [ebp - 0x205c], 2
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2038]
call fcn.00407c60
cmp dword [eax + 0x14], 0
je 0x431a20
mov edx, dword [ebp - 0x2064]
push edx
lea ecx, [ebp - 0x2054]
call fcn.00428a80
add esp, 4
test al, al
je 0x431a20
mov bl, 1
jmp 0x431a22
xor bl, bl
mov dword [ebp - 4], 6
test byte [ebp - 0x205c], 2
je 0x431a44
and dword [ebp - 0x205c], 0xfffffffd
lea ecx, [ebp - 0x20bc]
call fcn.00405c80
test bl, bl
je 0x431a4f
mov byte [ebp - 0x2055], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2054]
call fcn.00405c80
mov dword [ebp - 4], 0
inc edi
jmp 0x43193d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2020], 8
jb 0x431aa3
mov eax, dword [ebp - 0x2034]
push eax
call fcn.0045a597
add esp, 4
mov dword [ebp - 0x2020], 7
mov dword [ebp - 0x2024], 0
xor ecx, ecx
mov word [ebp - 0x2034], cx
mov al, byte [ebp - 0x2055]
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.004aa641
mov esp, ebp
pop ebp
ret