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

Disassembly:
push 0xffffffffffffffff
push 0x510e31
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x3bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3cc]
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, str.http:__config.pinyin.sogou.com_picface_interface_getSGKeyMap.php
mov edx, esi
call fcn.0043a2e0
push esi
call fcn.00428b90
add esp, 4
push str.ver
push 0x52139c
mov edx, esi
call fcn.0043a8a0
add esp, 8
lea ecx, [esp + 0x28c]
call fcn.0043a090
xor ebx, ebx
lea edi, [esp + 0x28c]
mov dword [esp + 0x3c4], ebx
call fcn.00403180
lea eax, [esp + 0x298]
cmp byte [esp + 0x3a8], bl
jne 0x40e2a9
mov eax, dword [esp + 0x294]
add eax, 4
push eax
push 0x52139c
mov edx, esi
call fcn.0043a8a0
push str.IniVer
push 0x52139c
mov edx, esi
call fcn.0043a8a0
add esp, 0x10
call fcn.00442f80
cmp word [eax + 0x4d4], bx
lea edi, [eax + 0x4d4]
jne 0x40e302
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push ebx
push ebx
push 0x23
push ebx
call ebp
test eax, eax
je 0x40e302
push edi
push 1
push ebx
push 0x23
push ebx
call ebp
test eax, eax
je 0x40e302
xor edi, edi
push ebx
push ebx
push ebx
push str.SGKeyMap.ini
push str.SogouInputComponentsPicface
push edi
lea ecx, [esp + 0x17c]
call fcn.00436ef0
mov byte [esp + 0x3c4], 1
lea eax, [esp + 0x170]
cmp byte [esp + 0x280], bl
jne 0x40e33b
mov eax, dword [esp + 0x16c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e4ec
shr eax, 4
not al
and al, 1
je 0x40e4ec
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.004ccfcd
mov dword [esp + 0x30], fcn.004cf168
mov dword [esp + 0x34], fcn.004ccef0
call fcn.0043a090
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x168]
mov byte [esp + 0x3c8], 2
call fcn.00430090
test al, al
jne 0x40e458
push 0x522100
push 0x52139c
mov edx, esi
call fcn.0043a8a0
mov byte [esp + 0x3cc], 1
add esp, 8
cmp byte [esp + 0x158], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x3c], esi
jne 0x40e3f9
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
cmp eax, edx
je 0x40e3f9
push eax
call fcn.004ccef0
add esp, 4
lea edi, [esp + 0x1c]
call fcn.00430260
cmp byte [esp + 0x280], 0
mov dword [esp + 0x164], esi
jne 0x40e42e
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x40e42e
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x3a8], 0
mov dword [esp + 0x28c], esi
jne 0x40e55b
mov eax, dword [esp + 0x294]
lea edx, [esp + 0x298]
cmp eax, edx
jmp 0x40e550
cmp byte [esp + 0x158], 0
lea eax, [esp + 0x48]
jne 0x40e46a
mov eax, dword [esp + 0x44]
add eax, 4
push eax
push 0x52139c
mov edx, esi
call fcn.0043a8a0
mov byte [esp + 0x3cc], 1
add esp, 8
cmp byte [esp + 0x158], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x3c], esi
jne 0x40e4ad
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x40e4ad
push eax
call fcn.004ccef0
add esp, 4
lea edi, [esp + 0x1c]
call fcn.00430260
cmp byte [esp + 0x280], 0
mov dword [esp + 0x164], esi
jne 0x40e4e2
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x40e4e2
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x3a8], 0
jmp 0x40e537
push 0x522100
push 0x52139c
mov edx, esi
call fcn.0043a8a0
add esp, 8
mov esi, vtable.t_str.0
mov dword [esp + 0x164], esi
cmp byte [esp + 0x280], bl
jne 0x40e530
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x40e530
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x3a8], bl
mov dword [esp + 0x28c], esi
jne 0x40e55b
mov eax, dword [esp + 0x294]
lea ecx, [esp + 0x298]
cmp eax, ecx
je 0x40e55b
push eax
call fcn.004ccef0
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.004ccee1
add esp, 0x3b4
ret 4