Function at 0x4afcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1e4
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x114]
push 0x104
push ebx
push esi
call fcn.00463600
add esp, 0xc
push 1
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4afd8a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
add esp, 0x1e4
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, dword [ebp - 0x1ec]
je 0x4afe95
sub edi, dword [ebp - 0x1e0]
cmp edi, 0xffffffff
je 0x4afe95
push 0x1d
push str....._base360qihoo_util.cc
call fcn.0044c880
add esp, 8
mov bl, 1
test eax, eax
jg 0x4aff42
cmp byte [ebp - 0x12d], 0
jns 0x4afd53
push dword [ebp - 0x138]
call fcn.00459b3c
add esp, 4
cmp byte [ebp - 0x121], 0
jns 0x4afd6a
push dword [ebp - 0x12c]
call fcn.00459b3c
add esp, 4
cmp byte [ebp - 0x115], 0
jns 0x4afcf1
push dword [ebp - 0x120]
call fcn.00459b3c
add esp, 4
jmp 0x4afcf1
xor edi, edi
dec edi
lea ebx, [ebp - 0x120]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov ecx, ebx
push str.config_systemprofile
call fcn.0048fa70
lea ecx, [ebp - 0x12c]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ebp - 0x1e8], ecx
push str.localservice_application_data
call fcn.0048fa70
lea ecx, [ebp - 0x138]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ebp - 0x1e0], ecx
push esi
call fcn.0048fa70
mov dword [ebp - 0x1e4], ebx
movzx ecx, byte [ebx + 0xb]
test cl, cl
jns 0x4afdff
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x1e4], eax
movzx ebx, byte [ebp - 0x12d]
test bl, bl
jns 0x4afe16
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x1e0], eax
test ecx, ecx
je 0x4afd23
test bl, bl
jns 0x4afe28
mov ebx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x1e0]
add eax, ebx
mov dword [ebp - 0x1ec], eax
cmp ebx, ecx
jl 0x4afe95
mov eax, dword [ebp - 0x1e4]
movsx eax, byte [eax]
mov dword [ebp - 0x1f0], eax
mov eax, ebx
mov edi, dword [ebp - 0x1e0]
sub eax, ecx
inc eax
je 0x4afe95
push eax
push dword [ebp - 0x1f0]
push edi
mov esi, ecx
call fcn.00461950
add esp, 0xc
test eax, eax
je 0x4afe95
mov edi, eax
push esi
push dword [ebp - 0x1e4]
push eax
call fcn.004619fd
add esp, 0xc
test eax, eax
je 0x4afd08
inc edi
mov eax, dword [ebp - 0x1ec]
sub eax, edi
cmp eax, esi
mov ecx, esi
jge 0x4afe51
movzx ecx, byte [ebp - 0x121]
test cl, cl
cmovs ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x1e8]
cmovs eax, dword [ebp - 0x12c]
mov dword [ebp - 0x1e8], eax
test ecx, ecx
je 0x4afd23
cmp ebx, ecx
jl 0x4aff19
mov eax, dword [ebp - 0x1e8]
movsx eax, byte [eax]
mov dword [ebp - 0x1e4], eax
mov edi, dword [ebp - 0x1e0]
sub ebx, ecx
inc ebx
je 0x4aff19
mov esi, ecx
push ebx
push dword [ebp - 0x1e4]
push edi
call fcn.00461950
add esp, 0xc
test eax, eax
je 0x4aff19
mov edi, eax
push esi
push dword [ebp - 0x1e8]
push eax
call fcn.004619fd
add esp, 0xc
test eax, eax
je 0x4aff20
inc edi
mov ebx, dword [ebp - 0x1ec]
sub ebx, edi
cmp ebx, esi
mov ecx, esi
jge 0x4afed9
xor ebx, ebx
jmp 0x4afd3c
xor ebx, ebx
cmp edi, dword [ebp - 0x1ec]
je 0x4afd3c
sub edi, dword [ebp - 0x1e0]
cmp edi, 0xffffffff
jne 0x4afd23
jmp 0x4afd3c
lea ecx, [ebp - 0x1dc]
push 0xffffffffffffffff
push 0x2a5
push str....._base360qihoo_util.cc
call fcn.0042f880
lea eax, [ebp - 0x1d4]
push 0x36
push str.IsSystemPrivilegeImp__SHGetSpecialFolderPathA_szPath_
push eax
call fcn.00491280
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x114]
push esi
call fcn.0047d960
add esp, 4
push eax
push esi
push edi
call fcn.00491280
add esp, 0xc
lea ecx, [ebp - 0x1dc]
call fcn.0042fd50
jmp 0x4afd3c