Function at 0x42991c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov ecx, dword [0x49c3bc]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [esp + 0x248], ecx
lea ecx, [esp + 8]
mov dword [esp + 4], ecx
push eax
call fcn.0041a570
lea edi, [esp + 0x40]
mov ecx, edi
push str.SOFTWAREPolicies_
call fcn.0040879a
xor esi, esi
push edi
push esi
push dword [ebp + 0xc]
call fcn.00428628
add esp, 0xc
cmp byte [edi + 0xb], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
jns 0x429980
mov edi, dword [esp + 0x40]
lea ebx, [esp + 0x20]
push ebx
push str.UserDataDir
push edi
push esi
push 1
call fcn.00440085
add esp, 0x14
test al, al
jne 0x4299c2
cmp byte [esp + 0x4b], 0
jns 0x4299a7
mov eax, dword [esp + 0x40]
jmp 0x4299ab
lea eax, [esp + 0x40]
push ebx
push str.UserDataDir
push eax
push 0
push 2
call fcn.00440085
add esp, 0x14
test al, al
je 0x429a25
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004403e4
add esp, 8
cmp byte [esp + 0x13], 0
js 0x4299e5
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
jmp 0x429a11
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
jns 0x429a11
push dword [esp + 8]
call fcn.004591e8
add esp, 4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
mov dword [esp + 0x10], eax
movsd qword [esp + 8], xmm0
cmp byte [esp + 0x2b], 0
jns 0x429a38
push dword [esp + 0x20]
call fcn.004591e8
add esp, 4
cmp byte [esp + 0x4b], 0
jns 0x429a4b
push dword [esp + 0x40]
call fcn.004591e8
add esp, 4
movzx edx, byte [esp + 0x13]
mov eax, dword [esp + 0xc]
test dl, dl
mov ecx, edx
cmovs ecx, eax
test ecx, ecx
je 0x429ae5
mov ecx, edx
shr cl, 7
mov esi, dword [esp + 8]
movzx edx, dl
test cl, 1
lea ebx, [esp + 8]
mov edi, edx
cmovne edi, eax
cmovne ebx, esi
movzx ebx, word [ebx + edi*2 - 2]
cmp bx, 0x5c
je 0x429a8f
cmp bx, 0x2f
jne 0x429acc
test cl, 1
je 0x429aa1
lea ecx, [eax - 1]
lea eax, [esi + eax*2 - 2]
mov dword [esp + 0xc], ecx
jmp 0x429aac
lea eax, [edx - 1]
mov byte [esp + 0x13], al
lea eax, [esp + edx*2 + 6]
mov word [eax], 0
movzx edx, byte [esp + 0x13]
mov eax, dword [esp + 0xc]
mov ecx, edx
mov esi, edx
shr cl, 7
test dl, dl
cmovs esi, eax
test esi, esi
jne 0x429a68
jmp 0x429ae5
test edi, edi
je 0x429ae5
lea eax, [esp + 8]
push eax
call fcn.004290ea
add esp, 4
test al, al
jne 0x429ba2
mov ecx, dword [ebp + 0x14]
lea edi, [esp + 8]
push edi
call fcn.0041a6d6
lea esi, [esp + 0x40]
push str.LOCALAPPDATA
push esi
call fcn.00428bf7
add esp, 8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x429b10
mov eax, dword [esp + 0x44]
test eax, eax
je 0x429be1
movsd xmm1, qword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], eax
movsd qword [esp + 0x40], xmm0
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 8]
test al, al
cmovs eax, dword [esp + 0xc]
cmovns ecx, edi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x429b66
lea ecx, [esp + 8]
push 0x5c
call fcn.0041acc2
push edi
push 1
push dword [ebp + 0xc]
call fcn.00428628
add esp, 0xc
mov ecx, edi
push 0x5c
call fcn.0041acc2
mov ecx, edi
push str.User_Data
call fcn.0041abb2
mov bl, 1
cmp byte [esp + 0x4b], 0
jns 0x429b9e
push dword [esp + 0x40]
call fcn.004591e8
add esp, 4
test bl, bl
je 0x429bda
cmp byte [esp + 0x13], 0
jns 0x429bb1
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov edi, dword [ebp + 0x10]
lea esi, [esp + 0x40]
push 0x104
push dword [esp + 8]
push esi
call fcn.0046b6ca
add esp, 0xc
test eax, eax
je 0x429c41
lea ecx, [esp + 0x20]
push esi
call fcn.0040879a
jmp 0x429c4f
xor ebx, ebx
jmp 0x429c98
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x429b8b
mov edi, eax
mov ecx, esi
inc edi
push 0
push edi
call fcn.0041a77c
cmp byte [esp + 0x4b], 0
jns 0x429c07
mov esi, dword [esp + 0x40]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x429cc3
movzx ecx, byte [esp + 0x4b]
test cl, cl
jns 0x429c24
mov ecx, dword [esp + 0x44]
cmp eax, ecx
lea edi, [esp + 8]
jae 0x429cc3
lea ecx, [esp + 0x40]
push 0
push eax
call fcn.0041a77c
jmp 0x429b18
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
cmp byte [edi + 0xb], 0
js 0x429c60
mov word [edi], 0
mov byte [edi + 0xb], 0
jmp 0x429c85
mov eax, dword [edi]
mov word [eax], 0
mov dword [edi + 4], 0
cmp byte [edi + 0xb], 0
jns 0x429c85
push dword [edi]
call fcn.004591e8
add esp, 4
mov dword [edi + 8], 0
mov eax, dword [esp + 0x28]
mov bl, 1
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [edi], xmm0
cmp byte [esp + 0x13], 0
jns 0x429cab
push dword [esp + 8]
call fcn.004591e8
add esp, 4
mov ecx, dword [esp + 0x248]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x429b8b