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

Disassembly:
push 0x340
mov eax, 0x4ef585
call fcn.004bcf2f
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.004bf1a0
lea eax, [ebp - 0x2a4]
mov ecx, str.kingsoftkiskcltpublic_kws.inf
push eax
call fcn.004260cc
add esp, 0x10
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4269be
test al, 0x10
jne 0x4269be
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 0x4269b9
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 0x4269ad
lea ecx, [edi - 4]
cmp ecx, 0x5f
ja 0x4269ad
push edi
call fcn.004badc8
mov esi, eax
imul eax, edi, 3
push eax
mov dword [ebp - 0x33c], eax
call fcn.004badc8
mov ebx, eax
mov dword [ebp - 0x338], ebx
pop ecx
pop ecx
test esi, esi
je 0x4269ad
test ebx, ebx
je 0x4269ad
push edi
push 0
push esi
call fcn.004bf1a0
push dword [ebp - 0x33c]
push 0
push ebx
call fcn.004bf1a0
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 0x42699f
cmp edi, dword [ebp - 0x348]
jne 0x42699f
cmp byte [esi], 0
je 0x426877
cmp byte [esi + 1], 0
jne 0x426877
push 3
lea eax, [ebp - 0x330]
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x334], eax
call fcn.0042409e
and dword [ebp - 4], 0
lea edx, [ebp - 0x338]
mov ecx, dword [ebp - 0x334]
call fcn.00439433
or dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x330]
cmp dword [ebp - 0x334], eax
je 0x426886
push dword [ebp - 0x334]
call fcn.004bbbce
pop ecx
jmp 0x426886
lea edx, [ebp - 0x338]
mov ecx, esi
call fcn.00439433
mov edi, eax
mov ebx, dword [ebp - 0x338]
test edi, edi
je 0x42699f
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 0x4268df
lea ecx, [ebp - 0x2b0]
cmp byte [eax + ebx], 0x26
jne 0x4268c8
mov dword [ecx], eax
add ecx, 4
inc eax
cmp eax, edi
jb 0x4268bd
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x33c], ecx
cmp dword [ebp - 0x2b0], 0
je 0x42699f
test edx, edx
je 0x42699f
test ecx, ecx
je 0x42699f
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.00425f09
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.00425f09
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x9a]
push eax
call fcn.004bf1a0
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.004046c0
push esi
call fcn.004bbc06
push ebx
call fcn.004bbc06
pop ecx
pop ecx
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4269c0
xor eax, eax
call fcn.004bcede
ret