Function at 0x10006dd0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10006e17
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10006e86
push str._SKUtil__SK_FileEncode_GetFileSize_Error
call fcn.100010e0
mov eax, dword [ebp - 0x210]
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea edi, [eax + 1]
push edi
call fcn.1000f2f2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100070c6
push edi
push 0
push ebx
call fcn.100105b0
add esp, 0xc
cmp dword [ebp - 0x20c], 0xffffffff
je 0x100070bd
push str._SKUtil__SK_FileEncode_Create_file_for_read_success
call fcn.100010e0
push 0xff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.100105b0
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.100105b0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push esi
call fcn.1000f47d
mov esi, dword [ebp - 0x20c]
add esp, 0x30
lea eax, [ebp - 0x208]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x10], 0
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
push ebx
je 0x10006fc4
call fcn.10002e90
add esp, 8
mov ecx, str..xml
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006f72
test dl, dl
je 0x10006f6e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006f72
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006f52
xor eax, eax
jmp 0x10006f77
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006fb3
mov ecx, str..skr
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006fa6
test dl, dl
je 0x10006fa2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006fa6
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006f86
xor eax, eax
jmp 0x10006fab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10007048
push dword [ebp - 0x208]
push ebx
call fcn.10002e90
jmp 0x10007045
call fcn.10002b90
add esp, 8
mov ecx, str..xml
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006ff7
test dl, dl
je 0x10006ff3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006ff7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006fd7
xor eax, eax
jmp 0x10006ffc
sbb eax, eax
or eax, 1
test eax, eax
je 0x10007039
mov ecx, str..skr
lea eax, [ebp - 0x104]
jmp 0x10007010
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007030
test dl, dl
je 0x1000702c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007030
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007010
xor eax, eax
jmp 0x10007035
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10007048
push dword [ebp - 0x208]
push ebx
call fcn.10002b90
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
cmp dword [ebp - 0x20c], 0
je 0x100070bd
push str._SKUtil__SK_FileEncode_Read_file_success
call fcn.100010e0
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100070bd
push str._SKUtil__SK_FileEncode_Create_file_for_write_success
call fcn.100010e0
add esp, 4
lea eax, [ebp - 0x218]
push 0
push eax
push dword [ebp - 0x208]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
mov dword [ebp - 0x210], 0
push ebx
call fcn.1000f27d
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret