Function at 0x405fc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d0b7a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00428ed0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], 0
call fcn.004291c0
add esp, 4
lea esi, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.0042f480
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, str.handinput.dat
mov byte [esp + 0x40], 2
call fcn.004065b0
add esp, 8
mov byte [esp + 0x38], 3
mov eax, dword [eax]
mov esi, dword [0x4d5364]
mov ebx, 1
push eax
mov dword [esp + 0x18], ebx
call esi
test eax, eax
jne 0x4060ad
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.handinput.dat
call fcn.004065b0
add esp, 8
mov dword [esp + 0x38], 4
mov eax, dword [eax]
mov ebx, 3
push eax
mov dword [esp + 0x18], ebx
call esi
test eax, eax
jne 0x4060ad
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov ebx, str.handinput.dat
call fcn.004065b0
mov eax, dword [eax]
add esp, 8
push eax
mov ebx, 7
call esi
test eax, eax
mov byte [esp + 0x13], 0
je 0x4060b2
mov byte [esp + 0x13], 1
test bl, 4
je 0x4060de
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4060de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 2
mov dword [esp + 0x38], 3
je 0x406112
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x38], 2
je 0x40613f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40613f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x406175
lea ecx, [edi + 0x198]
push ecx
push str.HandInputLibVersion
mov ecx, str.SOFTWARETencentQQPinyin
call fcn.00428820
lea edx, [edi + 0x19c]
push edx
push str.lasthandinputupdatetime
mov ecx, str.SOFTWARETencentQQPinyin
call fcn.00428820
add esp, 0x10
mov eax, dword [edi + 4]
push eax
call dword [0x4d53c8]
push 0
push 0
push 0x9df
push eax
call dword [0x4d5404]
mov esi, edi
call fcn.00404c10
push edi
call fcn.004049f0
mov ecx, dword [edi + 4]
push 1
push 0
push ecx
call dword [0x4d53e8]
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4061cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40621c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret