Function at 0x40a5e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d3f
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x4997d0]
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.00411dbb
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov eax, dword [0x49b7b8]
and eax, 1
jne 0x40a677
mov eax, dword [0x49b7b8]
or eax, 1
mov dword [0x49b7b8], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x429]
push eax
lea eax, [ebp - 0x42a]
push eax
mov ecx, 0x49b7a8
call fcn.0041424d
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
push 0x480530
call fcn.0044dc49
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [0x49b7b0]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x40a6fd
push str.APPDATA
lea ecx, [ebp - 0x2c]
call fcn.00401c41
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x49b7a8
call fcn.004125cf
mov dword [eax], 0x1a
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401ecc
mov byte [ebp - 4], 2
push 0x482300
lea ecx, [ebp - 0x48]
call fcn.00401c41
mov byte [ebp - 4], 7
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x49b7a8
call fcn.004125cf
mov dword [eax], 0x25
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401ecc
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a0]
push eax
mov ecx, 0x49b7a8
call fcn.00412745
mov eax, dword [0x49b7ac]
mov dword [ebp - 0x468], eax
push 0x49b7a8
push dword [ebp - 0x468]
lea ecx, [ebp - 0x404]
call fcn.00413ea3
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00414311
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x40a8e8
xor eax, eax
mov word [ebp - 0x3c4], ax
push 0x206
push 0
lea eax, [ebp - 0x3c2]
push eax
call fcn.0044b400
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 0x40a81f
lea eax, [ebp - 0x3c4]
push eax
call fcn.0044b4a8
pop ecx
mov dword [ebp - 0x470], eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004022c8
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404933
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.00401dd5
mov eax, dword [ebp + 8]
jmp 0x40a9d1
push str.SHGetFolderPath_fail__erro_code:_1___csidl:_2_
lea ecx, [ebp - 0xf4]
call fcn.004176fa
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.0041d8f4
pop ecx
pop ecx
mov dword [ebp - 0x478], eax
push dword [ebp + 0xc]
push dword [ebp - 0x478]
call fcn.0041d9da
pop ecx
pop ecx
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x47c]
lea eax, [ebp - 0x3e0]
push eax
call fcn.00417d6f
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf4]
call fcn.004108a4
lea ecx, [ebp - 0x3e0]
call fcn.004238c5
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x410]
call fcn.0044bc86
push 0x48ea08
lea eax, [ebp - 0x410]
push eax
call fcn.0044bba1
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x3e0]
call fcn.00401ecc
mov byte [ebp - 4], 2
jmp 0x40a9b0
push str.Special_CSIDL_not_support___1_
lea ecx, [ebp - 0x19c]
call fcn.004176fa
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.0041d9da
pop ecx
pop ecx
mov dword [ebp - 0x48c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x400]
push eax
call fcn.00417d6f
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x19c]
call fcn.004108a4
cmp dword [ebp - 0x3ec], 0x10
jb 0x40a95e
mov eax, dword [ebp - 0x400]
mov dword [ebp - 0x4a0], eax
jmp 0x40a96a
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.0044bc86
push 0x48ea08
lea eax, [ebp - 0x420]
push eax
call fcn.0044bba1
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x400]
call fcn.00401ecc
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.00401f59
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.0044b3ec
leave
ret