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

Disassembly:
push 0x340
mov eax, 0x526de8
call fcn.004f2332
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.004f2e30
lea eax, [ebp - 0x2a4]
mov ecx, str.kingsoftkiskcltpublic_kws.inf
push eax
call fcn.0043c7fb
add esp, 0x10
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d06b
test al, 0x10
jne 0x43d06b
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 0x43d066
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 0x43d05a
lea ecx, [edi - 4]
cmp ecx, 0x5f
ja 0x43d05a
push edi
call fcn.004f09ec
mov esi, eax
imul eax, edi, 3
push eax
mov dword [ebp - 0x33c], eax
call fcn.004f09ec
mov ebx, eax
mov dword [ebp - 0x338], ebx
pop ecx
pop ecx
test esi, esi
je 0x43d05a
test ebx, ebx
je 0x43d05a
push edi
push 0
push esi
call fcn.004f2e30
push dword [ebp - 0x33c]
push 0
push ebx
call fcn.004f2e30
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 0x43d04c
cmp edi, dword [ebp - 0x348]
jne 0x43d04c
cmp byte [esi], 0
je 0x43cf24
cmp byte [esi + 1], 0
jne 0x43cf24
push 3
lea eax, [ebp - 0x330]
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x334], eax
call fcn.0043a6f2
and dword [ebp - 4], 0
lea edx, [ebp - 0x338]
mov ecx, dword [ebp - 0x334]
call fcn.0044fb90
or dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x330]
cmp dword [ebp - 0x334], eax
je 0x43cf33
push dword [ebp - 0x334]
call fcn.004f1da0
pop ecx
jmp 0x43cf33
lea edx, [ebp - 0x338]
mov ecx, esi
call fcn.0044fb90
mov edi, eax
mov ebx, dword [ebp - 0x338]
test edi, edi
je 0x43d04c
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 0x43cf8c
lea ecx, [ebp - 0x2b0]
cmp byte [eax + ebx], 0x26
jne 0x43cf75
mov dword [ecx], eax
add ecx, 4
inc eax
cmp eax, edi
jb 0x43cf6a
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x33c], ecx
cmp dword [ebp - 0x2b0], 0
je 0x43d04c
test edx, edx
je 0x43d04c
test ecx, ecx
je 0x43d04c
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.0043c61e
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.0043c61e
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x9a]
push eax
call fcn.004f2e30
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.00417390
push esi
call fcn.004f304f
push ebx
call fcn.004f304f
pop ecx
pop ecx
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x43d06d
xor eax, eax
call fcn.004f22e1
ret