Function at 0x4e8e1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ebe9
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x428], 0
lea ecx, [ebp - 0x1bc]
call fcn.00466ccb
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov eax, dword [0x5c406c]
and eax, 1
jne 0x4e8eb4
mov eax, dword [0x5c406c]
or eax, 1
mov dword [0x5c406c], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x429]
push eax
lea eax, [ebp - 0x42a]
push eax
mov ecx, 0x5c405c
call fcn.004eb5f2
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
push 0x56a702
call fcn.004b314e
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [0x5c4064]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x4e8f3a
push str.APPDATA
lea ecx, [ebp - 0x2c]
call fcn.004045a0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x5c405c
call fcn.004eb1d8
mov dword [eax], 0x1a
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405420
mov byte [ebp - 4], 2
push str.SYSTEM
lea ecx, [ebp - 0x48]
call fcn.004045a0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x5c405c
call fcn.004eb1d8
mov dword [eax], 0x25
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00405420
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a0]
push eax
mov ecx, 0x5c405c
call fcn.004eb34e
mov eax, dword [0x5c4060]
mov dword [ebp - 0x468], eax
push 0x5c405c
push dword [ebp - 0x468]
lea ecx, [ebp - 0x404]
call fcn.004ebe2a
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.004eb6b6
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x4e9125
xor eax, eax
mov word [ebp - 0x3c4], ax
push 0x206
push 0
lea eax, [ebp - 0x3c2]
push eax
call fcn.004b7da0
add esp, 0xc
mov eax, dword [ebp - 0x1a0]
add eax, 0xc
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x3c4]
push eax
push 0
push 0
mov eax, dword [ebp - 0x46c]
push dword [eax + 0x1c]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x3e4], eax
cmp dword [ebp - 0x3e4], 0
jl 0x4e905c
lea eax, [ebp - 0x3c4]
push eax
call fcn.004b7e5f
pop ecx
mov dword [ebp - 0x470], eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x1bc]
call fcn.0042b21d
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041a4e4
mov byte [ebp - 4], 9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x428]
or eax, 1
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.0041a551
mov eax, dword [ebp + 8]
jmp 0x4e920e
push str.SHGetFolderPath_fail__erro_code:_1___csidl:_2_
lea ecx, [ebp - 0xf4]
call fcn.0041d95f
mov dword [ebp - 0x498], eax
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x3e4]
push eax
push dword [ebp - 0x474]
call fcn.004ed3da
pop ecx
pop ecx
mov dword [ebp - 0x478], eax
push dword [ebp + 0xc]
push dword [ebp - 0x478]
call fcn.0041f8d0
pop ecx
pop ecx
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x47c]
lea eax, [ebp - 0x3e0]
push eax
call fcn.00456278
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf4]
call fcn.0041a250
lea ecx, [ebp - 0x3e0]
call fcn.00405470
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x410]
call fcn.004b3926
push 0x5a5b14
lea eax, [ebp - 0x410]
push eax
call fcn.004b3841
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x3e0]
call fcn.00405420
mov byte [ebp - 4], 2
jmp 0x4e91ed
push str.Special_CSIDL_not_support___1_
lea ecx, [ebp - 0x19c]
call fcn.0041d95f
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 0xf
push dword [ebp + 0xc]
push dword [ebp - 0x488]
call fcn.0041f8d0
pop ecx
pop ecx
mov dword [ebp - 0x48c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x400]
push eax
call fcn.00456278
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x19c]
call fcn.0041a250
cmp dword [ebp - 0x3ec], 0x10
jb 0x4e919b
mov eax, dword [ebp - 0x400]
mov dword [ebp - 0x4a0], eax
jmp 0x4e91a7
lea eax, [ebp - 0x400]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
call fcn.004b3926
push 0x5a5b14
lea eax, [ebp - 0x420]
push eax
call fcn.004b3841
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x400]
call fcn.00405420
mov byte [ebp - 4], 2
mov dword [ebp - 4], 0x13
mov dword [ebp - 4], 0x14
push 0
push 1
lea ecx, [ebp - 0x1bc]
call fcn.0041bda0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2f5a
leave
ret