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

Disassembly:
push 0xffffffffffffffff
push 0x50908d
mov eax, dword fs:[0]
push eax
sub esp, 0x5f4
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x5f0], eax
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x604]
mov dword fs:[0], eax
mov eax, dword [esp + 0x614]
mov edi, ecx
mov dword [esp + 0x14], eax
mov eax, str.http:__config.pinyin.sogou.com_picface_interface_SogouCellMap.php
mov edx, edi
call fcn.00438d30
push edi
call fcn.0042b680
add esp, 4
push str.ver
push 0x5192f4
mov edx, edi
call fcn.004392f0
call fcn.00402ff0
push str.MapMd5
push 0x5192f4
mov edx, edi
call fcn.004392f0
add esp, 0x10
lea ecx, [esp + 0x160]
call fcn.00438ae0
mov dword [esp + 0x60c], 0
call fcn.0043dfe0
cmp word [eax + 0x4d4], 0
lea esi, [eax + 0x4d4]
jne 0x40eada
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call ebp
test eax, eax
je 0x40eada
push esi
push 1
push 0
push 0x23
push 0
call ebp
test eax, eax
je 0x40eada
xor ebp, ebp
jmp 0x40eadc
mov ebp, esi
lea ecx, [esp + 0x288]
call fcn.00438ae0
mov eax, ebp
lea edx, [esp + 0x288]
mov byte [esp + 0x60c], 1
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.SogouInputComponentsPicface
lea ecx, [esp + 0x54]
call fcn.00435960
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x40eb28
mov eax, dword [esp + 0x44]
cmp word [eax + 4], 0x2e
lea ecx, [esp + 0x3c]
jne 0x40eb41
lea esi, [esp + 0x288]
call fcn.00436ab0
jmp 0x40eb4e
push ecx
lea ecx, [esp + 0x28c]
call fcn.00435f50
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x40eb75
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
je 0x40eb75
push eax
call fcn.004c6103
add esp, 4
lea ecx, [esp + 0x288]
mov byte [esp + 0x60c], 2
call fcn.00436170
test al, al
je 0x40ed9d
lea ecx, [esp + 0x4d8]
call fcn.00438ae0
mov eax, ebp
lea edx, [esp + 0x4d8]
mov byte [esp + 0x60c], 3
call fcn.00438d30
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push str.SogouInputComponentsPicfaceSGPkgMap
lea ecx, [esp + 0x54]
call fcn.00435960
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x40ebda
mov eax, dword [esp + 0x44]
cmp word [eax + 4], 0x2e
jne 0x40ebf5
lea ecx, [esp + 0x3c]
lea esi, [esp + 0x4d8]
call fcn.00436ab0
xor esi, esi
jmp 0x40ec06
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4dc]
call fcn.00435f50
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x40ec2d
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x40ec2d
push eax
call fcn.004c6103
add esp, 4
push esi
push esi
push esi
push str.SGPkgMap.dat
push str.SogouInputComponentsPicface
push ebp
lea ecx, [esp + 0x3c8]
mov byte [esp + 0x624], 4
call fcn.00435960
lea ecx, [esp + 0x4d8]
mov byte [esp + 0x60c], 5
call fcn.00436170
test al, al
je 0x40ed3e
cmp byte [esp + 0x4cc], 0
lea eax, [esp + 0x3bc]
jne 0x40ec83
mov eax, dword [esp + 0x3b8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ed3e
shr eax, 4
not al
and al, 1
je 0x40ed3e
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], fcn.004c61e0
mov dword [esp + 0x2c], fcn.004c83aa
mov dword [esp + 0x30], fcn.004c6103
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x1fff8
mov dword [esp + 0x24], vtable.t_heap.0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3b0]
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x614], 6
call fcn.00442ca0
test al, al
jne 0x40ed0b
lea ecx, [esp + 0x160]
call fcn.00438cb0
jmp 0x40ed2d
lea edx, [esp + 0x18]
call fcn.00442fd0
cmp eax, esi
je 0x40ed2d
push eax
push 0x5192f4
lea edx, [esp + 0x168]
call fcn.004392f0
add esp, 8
lea esi, [esp + 0x18]
mov byte [esp + 0x60c], 5
call fcn.00442c60
cmp byte [esp + 0x4cc], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x3b0], esi
jne 0x40ed6f
mov eax, dword [esp + 0x3b8]
lea ecx, [esp + 0x3bc]
cmp eax, ecx
je 0x40ed6f
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x5f4], 0
mov dword [esp + 0x4d8], esi
jne 0x40edb0
mov eax, dword [esp + 0x4e0]
lea edx, [esp + 0x4e4]
cmp eax, edx
je 0x40edb0
push eax
call fcn.004c6103
add esp, 4
jmp 0x40edb0
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x290]
call fcn.00436b00
cmp byte [esp + 0x27c], 0
lea eax, [esp + 0x16c]
jne 0x40edc8
mov eax, dword [esp + 0x168]
add eax, 4
push eax
push 0x5192f4
mov edx, edi
call fcn.004392f0
add esp, 8
cmp byte [esp + 0x3a4], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x288], esi
jne 0x40ee0c
mov eax, dword [esp + 0x290]
lea ecx, [esp + 0x294]
cmp eax, ecx
je 0x40ee0c
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x27c], 0
mov dword [esp + 0x160], esi
jne 0x40ee38
mov eax, dword [esp + 0x168]
lea edx, [esp + 0x16c]
cmp eax, edx
je 0x40ee38
push eax
call fcn.004c6103
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x604]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5f0]
xor ecx, esp
call fcn.004c60f4
add esp, 0x600
ret 4