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

Disassembly:
push 0xffffffffffffffff
push 0x510ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x5f4
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x5f0], eax
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
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.0043a2e0
push edi
call fcn.00428b90
add esp, 4
push str.ver
push 0x52139c
mov edx, edi
call fcn.0043a8a0
call fcn.00403180
push str.MapMd5
push 0x52139c
mov edx, edi
call fcn.0043a8a0
add esp, 0x10
lea ecx, [esp + 0x160]
call fcn.0043a090
mov dword [esp + 0x60c], 0
call fcn.00442f80
cmp word [eax + 0x4d4], 0
lea esi, [eax + 0x4d4]
jne 0x40e8fa
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call ebp
test eax, eax
je 0x40e8fa
push esi
push 1
push 0
push 0x23
push 0
call ebp
test eax, eax
je 0x40e8fa
xor ebp, ebp
jmp 0x40e8fc
mov ebp, esi
lea ecx, [esp + 0x288]
call fcn.0043a090
mov eax, ebp
lea edx, [esp + 0x288]
mov byte [esp + 0x60c], 1
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.SogouInputComponentsPicface
lea ecx, [esp + 0x54]
call fcn.00436ef0
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x40e948
mov eax, dword [esp + 0x44]
cmp word [eax + 4], 0x2e
lea ecx, [esp + 0x3c]
jne 0x40e961
lea esi, [esp + 0x288]
call fcn.00438040
jmp 0x40e96e
push ecx
lea ecx, [esp + 0x28c]
call fcn.004374e0
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x40e995
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
je 0x40e995
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x288]
mov byte [esp + 0x60c], 2
call fcn.00437700
test al, al
je 0x40ebbd
lea ecx, [esp + 0x4d8]
call fcn.0043a090
mov eax, ebp
lea edx, [esp + 0x4d8]
mov byte [esp + 0x60c], 3
call fcn.0043a2e0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push str.SogouInputComponentsPicfaceSGPkgMap
lea ecx, [esp + 0x54]
call fcn.00436ef0
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x40e9fa
mov eax, dword [esp + 0x44]
cmp word [eax + 4], 0x2e
jne 0x40ea15
lea ecx, [esp + 0x3c]
lea esi, [esp + 0x4d8]
call fcn.00438040
xor esi, esi
jmp 0x40ea26
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4dc]
call fcn.004374e0
cmp byte [esp + 0x158], 0
mov dword [esp + 0x3c], vtable.t_str.0
jne 0x40ea4d
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x40ea4d
push eax
call fcn.004ccef0
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.00436ef0
lea ecx, [esp + 0x4d8]
mov byte [esp + 0x60c], 5
call fcn.00437700
test al, al
je 0x40eb5e
cmp byte [esp + 0x4cc], 0
lea eax, [esp + 0x3bc]
jne 0x40eaa3
mov eax, dword [esp + 0x3b8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eb5e
shr eax, 4
not al
and al, 1
je 0x40eb5e
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], fcn.004ccfcd
mov dword [esp + 0x2c], fcn.004cf168
mov dword [esp + 0x30], fcn.004ccef0
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.004437a0
test al, al
jne 0x40eb2b
lea ecx, [esp + 0x160]
call fcn.0043a260
jmp 0x40eb4d
lea edx, [esp + 0x18]
call fcn.00443ad0
cmp eax, esi
je 0x40eb4d
push eax
push 0x52139c
lea edx, [esp + 0x168]
call fcn.0043a8a0
add esp, 8
lea esi, [esp + 0x18]
mov byte [esp + 0x60c], 5
call fcn.00443760
cmp byte [esp + 0x4cc], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x3b0], esi
jne 0x40eb8f
mov eax, dword [esp + 0x3b8]
lea ecx, [esp + 0x3bc]
cmp eax, ecx
je 0x40eb8f
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x5f4], 0
mov dword [esp + 0x4d8], esi
jne 0x40ebd0
mov eax, dword [esp + 0x4e0]
lea edx, [esp + 0x4e4]
cmp eax, edx
je 0x40ebd0
push eax
call fcn.004ccef0
add esp, 4
jmp 0x40ebd0
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x290]
call fcn.00438090
cmp byte [esp + 0x27c], 0
lea eax, [esp + 0x16c]
jne 0x40ebe8
mov eax, dword [esp + 0x168]
add eax, 4
push eax
push 0x52139c
mov edx, edi
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x3a4], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x288], esi
jne 0x40ec2c
mov eax, dword [esp + 0x290]
lea ecx, [esp + 0x294]
cmp eax, ecx
je 0x40ec2c
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x27c], 0
mov dword [esp + 0x160], esi
jne 0x40ec58
mov eax, dword [esp + 0x168]
lea edx, [esp + 0x16c]
cmp eax, edx
je 0x40ec58
push eax
call fcn.004ccef0
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.004ccee1
add esp, 0x600
ret 4