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

Disassembly:
push 0x340
mov eax, 0x4efda4
call fcn.004bcfcf
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.004bf240
lea eax, [ebp - 0x2a4]
mov ecx, str.kingsoftkiskcltpublic_kws.inf
push eax
call fcn.00426143
add esp, 0x10
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4269b3
test al, 0x10
jne 0x4269b3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x340], eax
cmp eax, 0xffffffff
je 0x4269ae
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 0x4269a2
lea ecx, [edi - 4]
cmp ecx, 0x5f
ja 0x4269a2
push edi
call fcn.004bae68
mov esi, eax
imul eax, edi, 3
push eax
mov dword [ebp - 0x33c], eax
call fcn.004bae68
mov ebx, eax
mov dword [ebp - 0x338], ebx
pop ecx
pop ecx
test esi, esi
je 0x4269a2
test ebx, ebx
je 0x4269a2
push edi
push 0
push esi
call fcn.004bf240
push dword [ebp - 0x33c]
push 0
push ebx
call fcn.004bf240
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 0x426994
cmp edi, dword [ebp - 0x348]
jne 0x426994
cmp byte [esi], 0
je 0x42686c
cmp byte [esi + 1], 0
jne 0x42686c
push 3
lea eax, [ebp - 0x330]
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x334], eax
call fcn.0042403f
and dword [ebp - 4], 0
lea edx, [ebp - 0x338]
mov ecx, dword [ebp - 0x334]
call fcn.00439b84
or dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x330]
cmp dword [ebp - 0x334], eax
je 0x42687b
push dword [ebp - 0x334]
call fcn.004bbc6e
pop ecx
jmp 0x42687b
lea edx, [ebp - 0x338]
mov ecx, esi
call fcn.00439b84
mov edi, eax
mov ebx, dword [ebp - 0x338]
test edi, edi
je 0x426994
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 0x4268d4
lea ecx, [ebp - 0x2b0]
cmp byte [eax + ebx], 0x26
jne 0x4268bd
mov dword [ecx], eax
add ecx, 4
inc eax
cmp eax, edi
jb 0x4268b2
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x33c], ecx
cmp dword [ebp - 0x2b0], 0
je 0x426994
test edx, edx
je 0x426994
test ecx, ecx
je 0x426994
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.00425f80
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.00425f80
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x9a]
push eax
call fcn.004bf240
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.00406d50
push esi
call fcn.004bbca6
push ebx
call fcn.004bbca6
pop ecx
pop ecx
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4269b5
xor eax, eax
call fcn.004bcf7e
ret