Function at 0x40ff50
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x505fa1
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x3bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3cc]
mov edi, ecx
mov dword [esp + 0x18], eax
mov eax, str.http:__config.pinyin.sogou.com_picface_interface_CandBlackList.php
mov edx, edi
call fcn.00434c20
push edi
call fcn.00424c00
add esp, 4
push str.ver
push 0x51620c
mov edx, edi
call fcn.004351e0
call fcn.00402ff0
push str.IniVer
push 0x51620c
mov edx, edi
call fcn.004351e0
add esp, 0x10
lea ecx, [esp + 0x164]
call fcn.004349d0
xor ebx, ebx
mov dword [esp + 0x3c4], ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], fcn.004c328d
mov dword [esp + 0x30], fcn.004c53b2
mov dword [esp + 0x34], fcn.004c31b0
call fcn.004349d0
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c4], 1
call fcn.0043d5c0
cmp word [eax + 0x4d4], bx
lea esi, [eax + 0x4d4]
jne 0x41005e
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push ebx
push ebx
push 0x23
push ebx
call ebp
test eax, eax
je 0x41005e
push esi
push 1
push ebx
push 0x23
push ebx
call ebp
test eax, eax
je 0x41005e
xor esi, esi
push ebx
push ebx
push ebx
push str.CandBlackList.ini
push str.SogouInputComponentsPicfaceCandBlackList
push esi
lea ecx, [esp + 0x2a4]
call fcn.00431ac0
mov byte [esp + 0x3c4], 2
cmp dword [esp + 0x290], ebx
je 0x41011d
lea eax, [esp + 0x298]
cmp byte [esp + 0x3a8], bl
jne 0x4100a4
mov eax, dword [esp + 0x294]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41011d
shr eax, 4
not al
and al, 1
je 0x41011d
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x290]
lea ebx, [esp + 0x20]
call fcn.0042a470
test al, al
jne 0x4100ef
push 0
push 0x516dbc
lea edx, [esp + 0x16c]
call fcn.004351e0
add esp, 8
xor ebx, ebx
jmp 0x410132
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x410101
mov eax, dword [esp + 0x44]
add eax, 4
push eax
push 0x51620c
lea edx, [esp + 0x16c]
call fcn.004351e0
add esp, 8
xor ebx, ebx
jmp 0x410132
push ebx
push 0x516dbc
lea edx, [esp + 0x16c]
call fcn.004351e0
add esp, 8
lea eax, [esp + 0x170]
cmp byte [esp + 0x280], bl
jne 0x410149
mov eax, dword [esp + 0x16c]
add eax, 4
push eax
push 0x51620c
mov edx, edi
call fcn.004351e0
add esp, 8
mov esi, vtable.t_str.0
mov dword [esp + 0x28c], esi
cmp byte [esp + 0x3a8], bl
jne 0x41018c
mov eax, dword [esp + 0x294]
lea edx, [esp + 0x298]
cmp eax, edx
je 0x41018c
push eax
call fcn.004c31b0
add esp, 4
mov byte [esp + 0x3c4], bl
mov dword [esp + 0x3c], esi
cmp byte [esp + 0x158], bl
jne 0x4101b5
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x4101b5
push eax
call fcn.004c31b0
add esp, 4
lea edi, [esp + 0x1c]
call fcn.0042a6b0
mov dword [esp + 0x164], esi
cmp byte [esp + 0x280], bl
jne 0x4101e9
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x4101e9
push eax
call fcn.004c31b0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x3bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3a0]
xor ecx, esp
call fcn.004c31a1
add esp, 0x3b4
ret 4