Function at 0x4aa7d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
push 4
mov dword [ebp - 0x24], edx
mov ebx, ecx
mov dword [ebp - 0x20], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0
mov dword [eax], 0
call fcn.004a60e0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x105
mov eax, dword [ecx]
cmp eax, 0x105
jae 0x4aa84b
lea eax, [eax*2 + 0x10]
mov esi, 0x105
and eax, 0xfff0
cmp eax, esi
cmova esi, eax
lea eax, [esi*2 + 4]
push eax
push ecx
call fcn.00478579
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
mov dword [ecx], esi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ecx + 4]
push eax
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x4aa8eb
lea ecx, [ebp - 0x20]
call fcn.004a60e0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x105
mov eax, dword [ecx]
cmp eax, 0x105
jae 0x4aa8b0
lea eax, [eax*2 + 0x10]
mov esi, 0x105
and eax, 0xfff0
cmp eax, esi
cmova esi, eax
lea eax, [esi*2 + 4]
push eax
push ecx
call fcn.00478579
mov ecx, eax
add esp, 8
mov dword [ebp - 0x18], ecx
mov dword [ecx], esi
lea eax, [ecx + 4]
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x4aa8eb
lea ecx, [ebp - 0x20]
call fcn.004a60e0
mov ecx, ebx
call fcn.004a7c10
push 0x4e497c
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
xor bl, bl
jmp 0x4aab26
lea ecx, [ebp - 0x20]
call fcn.004a5520
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push 0
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.004b7750
cmp byte [0x51dc50], 0
jne 0x4aa95d
push 0x114
lea eax, [ebp - 0x160]
mov byte [0x51dc50], 1
push 0
push eax
call fcn.0044eee0
add esp, 0xc
lea ecx, [ebp - 0x160]
xor edx, edx
call fcn.004ab0a0
cmp dword [ebp - 0x15c], 6
jb 0x4aa951
mov byte [0x51dc5d], 1
jmp 0x4aa96a
mov byte [0x51dc5d], 0
jmp 0x4aab08
cmp byte [0x51dc5d], 0
je 0x4aab08
mov esi, dword [ebp - 0x2c]
add esi, 4
push 0x5c
push esi
call fcn.0044f834
add esp, 8
test eax, eax
je 0x4aa982
lea esi, [eax + 2]
push 4
mov dword [ebp - 0x10], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [eax], 0
call fcn.004a60e0
push esi
lea ecx, [ebp - 0x10]
call fcn.004a5ed0
mov edi, dword [ebp - 8]
mov ecx, 0x4e4990
lea eax, [edi + 4]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4aa9e6
test dx, dx
je 0x4aa9e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4aa9e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4aa9c0
xor eax, eax
jmp 0x4aa9eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4aaafb
mov ecx, str.AppDataRoaming
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aaa00
mov esi, dword [edi]
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, esi
jbe 0x4aaa3f
lea esi, [esi*2 + 0x10]
and esi, 0xfff0
cmp ebx, esi
cmovae esi, ebx
lea eax, [esi*2 + 4]
push eax
push edi
call fcn.00478579
mov edi, eax
add esp, 8
mov dword [edi], esi
lea ecx, [ebx + ebx]
push ecx
lea esi, [edi + 4]
push str.AppDataRoaming
push esi
call fcn.0044e3e0
add esp, 0xc
mov dword [ebp - 0x10], vtable.t_str.0
push 4
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [eax], 0
call fcn.004a60e0
lea ecx, [ebp - 0x10]
call fcn.004a60e0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.004b6f50
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x44]
call fcn.004b7750
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
lea ebx, [esi + 4]
test ecx, ecx
je 0x4aaabc
mov eax, dword [ebp - 8]
cmp word [eax + ecx*2 + 2], 0x5c
je 0x4aaac9
push 0x4e74d8
lea ecx, [ebp - 0x10]
call fcn.004a59f0
push ebx
lea ecx, [ebp - 0x10]
call fcn.004a59f0
test esi, esi
je 0x4aaadf
push esi
call fcn.00459651
add esp, 4
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x34]
lea eax, [esi + 4]
push eax
call fcn.004a5ed0
test esi, esi
je 0x4aaafb
push esi
call fcn.00459651
add esp, 4
test edi, edi
je 0x4aab08
push edi
call fcn.00459651
add esp, 4
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea eax, [esi + 4]
push eax
call fcn.004a5ed0
mov bl, 1
test esi, esi
je 0x4aab26
push esi
call fcn.00459651
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4aab36
push eax
call fcn.00459651
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret