Function at 0x42660e
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push 0x340
mov eax, 0x4ef8c5
call fcn.004bd27f
mov dword [ebp - 0x34c], ecx
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x2a4], ax
lea eax, [ebp - 0x2a2]
push ebx
push eax
call fcn.004bf4f0
lea eax, [ebp - 0x2a4]
mov ecx, str.kingsoftkiskcltpublic_kws.inf
push eax
call fcn.0042607c
add esp, 0x10
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4268ec
test al, 0x10
jne 0x4268ec
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x340], eax
cmp eax, 0xffffffff
je 0x4268e7
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x344], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 0x344], ebx
jne 0x4268db
lea ecx, [edi - 4]
cmp ecx, 0x5f
ja 0x4268db
push edi
call fcn.004bb10a
mov esi, eax
imul eax, edi, 3
push eax
mov dword [ebp - 0x33c], eax
call fcn.004bb10a
mov ebx, eax
mov dword [ebp - 0x338], ebx
pop ecx
pop ecx
test esi, esi
je 0x4268db
test ebx, ebx
je 0x4268db
push edi
push 0
push esi
call fcn.004bf4f0
push dword [ebp - 0x33c]
push 0
push ebx
call fcn.004bf4f0
and dword [ebp - 0x348], 0
lea eax, [ebp - 0x348]
add esp, 0x18
push 0
push eax
push edi
push esi
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4268cd
cmp edi, dword [ebp - 0x348]
jne 0x4268cd
cmp byte [esi], 0
je 0x4267a5
cmp byte [esi + 1], 0
jne 0x4267a5
push 3
lea eax, [ebp - 0x330]
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x334], eax
call fcn.0042404e
and dword [ebp - 4], 0
lea edx, [ebp - 0x338]
mov ecx, dword [ebp - 0x334]
call fcn.00439363
or dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x330]
cmp dword [ebp - 0x334], eax
je 0x4267b4
push dword [ebp - 0x334]
call fcn.004bbf10
pop ecx
jmp 0x4267b4
lea edx, [ebp - 0x338]
mov ecx, esi
call fcn.00439363
mov edi, eax
mov ebx, dword [ebp - 0x338]
test edi, edi
je 0x4268cd
and dword [ebp - 0x2b0], 0
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x33c], ecx
xor eax, eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a8], ecx
test edi, edi
je 0x42680d
lea ecx, [ebp - 0x2b0]
cmp byte [eax + ebx], 0x26
jne 0x4267f6
mov dword [ecx], eax
add ecx, 4
inc eax
cmp eax, edi
jb 0x4267eb
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x33c], ecx
cmp dword [ebp - 0x2b0], 0
je 0x4268cd
test edx, edx
je 0x4268cd
test ecx, ecx
je 0x4268cd
xor eax, eax
mov byte [ebp - 0x38], 0
lea edi, [ebp - 0x37]
mov byte [ebp - 0x24], 0
stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x2b0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, edx
sub eax, ecx
sub eax, 6
push eax
lea eax, [ecx + 6]
add eax, ebx
lea ecx, [ebp - 0x38]
push eax
call fcn.00425eb9
mov ecx, dword [ebp - 0x2ac]
mov eax, dword [ebp - 0x33c]
sub eax, ecx
sub eax, 6
push eax
lea eax, [ecx + 6]
add eax, ebx
lea ecx, [ebp - 0x24]
push eax
call fcn.00425eb9
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x9a]
push eax
call fcn.004bf4f0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x9c]
push str._S__S
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x9c]
add esp, 0x1c
push eax
call fcn.00404700
push esi
call fcn.004bbf48
push ebx
call fcn.004bbf48
pop ecx
pop ecx
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4268ee
xor eax, eax
call fcn.004bd22e
ret