Function at 0x4aef00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539017
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
lea ecx, [ebp - 0x134]
call fcn.004ad0c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.004ada80
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4af024
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004ada80
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x105
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0x105
call fcn.004ada80
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4af024
lea ecx, [ebp - 0x134]
call fcn.004ad2b0
mov ecx, esi
call fcn.004af720
push 0x5620e8
push 0x561dd0
push eax
call fcn.004ad730
add esp, 0xc
xor bl, bl
jmp 0x4af234
lea ecx, [ebp - 0x134]
call fcn.004ad500
cmp byte [ebp - 0x18], 0
lea esi, [ebp - 0x128]
lea ecx, [ebp - 0x258]
cmove esi, dword [ebp - 0x12c]
call fcn.004ad0c0
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x258]
call fcn.004ad300
mov byte [ebp - 4], 2
call fcn.004aea60
test al, al
je 0x4af1e7
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x5c
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.004e4b65
add esp, 8
test eax, eax
jne 0x4af0aa
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
add eax, 4
jmp 0x4af0ad
add eax, 2
push eax
lea ecx, [ebp - 0x4a0]
call fcn.004ad210
push str.Application_Data
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 3
call fcn.004ad400
test al, al
je 0x4af1bb
push str.AppDataRoaming
lea ecx, [ebp - 0x4a0]
call fcn.004ad300
lea ecx, [ebp - 0x37c]
call fcn.004b2730
lea eax, [ebp - 0x37c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x258]
call fcn.004b2df0
cmp byte [ebp - 0x384], 0
lea eax, [ebp - 0x494]
lea ecx, [ebp - 0x5c4]
cmove eax, dword [ebp - 0x498]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.004b2790
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x37c]
call fcn.004b28e0
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4af16c
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x4af16c
push eax
call fcn.004e4a56
add esp, 4
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x258]
cmove eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.004ad300
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4af1bb
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x4af1bb
push eax
call fcn.004e4a56
add esp, 4
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4af1e7
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x4af1e7
push eax
call fcn.004e4a56
add esp, 4
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
mov ecx, ebx
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.004ad300
cmp byte [ebp - 0x13c], 0
mov bl, 1
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4af234
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x4af234
push eax
call fcn.004e4a56
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4af25d
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x4af25d
push eax
call fcn.004e4a56
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret