Function at 0x100a1880
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015d60f
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x101b90ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x53c]
push eax
call sym.WnSkinPreview.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_CSkinData::GetTempSkinRoot_void_
cmp dword [eax + 0x14], 8
jb 0x100a18c4
mov eax, dword [eax]
push 0x1018e100
push str.TempSkin
push eax
lea eax, [ebp - 0x31c]
push 0x101833b0
push eax
call fcn.10041b30
mov eax, dword [ebp - 0x528]
add esp, 0x14
cmp eax, 8
jb 0x100a1901
inc eax
lea ecx, [ebp - 0x53c]
push eax
push dword [ebp - 0x53c]
call fcn.10042110
lea eax, [ebp - 0x53c]
mov ecx, edi
push eax
call sym.WnSkinPreview.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_CSkinData::GetTempSkinRoot_void_
cmp dword [eax + 0x14], 8
jb 0x100a1917
mov eax, dword [eax]
push 0x1018e100
push str.TempSkin
push eax
lea eax, [ebp - 0x524]
push 0x101833b0
push eax
call fcn.10041b30
mov eax, dword [ebp - 0x528]
add esp, 0x14
cmp eax, 8
jb 0x100a1954
inc eax
lea ecx, [ebp - 0x53c]
push eax
push dword [ebp - 0x53c]
call fcn.10042110
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x31c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call ebx
push 0
push 0
push eax
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x31c]
push eax
push 0
push 1
call ebx
lea ecx, [ebp - 0x594]
call fcn.10106050
push 0x38
mov dword [ebp - 4], 0
call fcn.10109ed3
add esp, 4
mov dword [ebp - 0x548], eax
push 0x10183648
push str.UTF_8
push 0x1018fdb0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10105f40
push eax
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 0
call fcn.10106d90
push 0x50
call fcn.10109ed3
add esp, 4
mov dword [ebp - 0x548], eax
push str.TheSkin
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10106130
mov esi, eax
mov byte [ebp - 4], 0
push 0x1018fdb0
push str.version
mov ecx, esi
call fcn.10107750
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSkinConfigureElement_class_TiXmlElement__
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveFontStyleElement_class_TiXmlElement__
push str.SkinStyle_H1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.SkinStyle_V1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.SkinStyle_H2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.SkinStyle_V2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStyleElement_class_TiXmlElement___wchar_t_const__
push str.Scheme_H1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Scheme_V1
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Comp_H2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Cand_H2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Comp_V2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push str.Cand_V2
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveSchemeElement_class_TiXmlElement___wchar_t_const__
push esi
mov ecx, edi
call sym.WnSkinPreview.dll_public:_void___thiscall_CSkinData::SaveStatusStyle_class_TiXmlElement__
push esi
lea ecx, [ebp - 0x594]
call fcn.10106d90
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x594]
call fcn.101076e0
xor ebx, ebx
lea eax, [ebp - 0x31c]
push ebx
push 0x80
push 4
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 0x544], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x548], eax
cmp eax, 0xffffffff
je 0x100a1b07
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x544], eax
lea esi, [ebx + 1]
push esi
call fcn.10050e10
push esi
mov edi, eax
push 0
push edi
call fcn.1012b3b0
mov ebx, dword [ebp - 0x548]
lea eax, [ebp - 0x54c]
add esp, 0x10
mov dword [ebp - 0x54c], 0
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10050e10
mov ecx, dword [ebp - 0x544]
mov ebx, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push ebx
call fcn.1012b3b0
push ebx
push edi
call fcn.1010ff81
push esi
push 0
push edi
call fcn.1012b3b0
mov eax, dword [ebp - 0x544]
lea esi, [eax*2 + 1]
push esi
call fcn.10050e10
push esi
push 0
push eax
mov dword [ebp - 0x544], eax
call fcn.1012b3b0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x34
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
push 0
push 0
push eax
push dword [ebp - 0x544]
mov dword [ebp - 0x548], eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
lea eax, [ebp - 0x524]
push 0x1018fe2c
push eax
call fcn.1013ed7a
mov esi, eax
add esp, 8
test esi, esi
je 0x100a1c67
push esi
push 1
lea eax, [ebp - 0x53d]
mov byte [ebp - 0x53d], 0xef
push 1
push eax
call fcn.1013efe0
push esi
push 1
lea eax, [ebp - 0x53d]
mov byte [ebp - 0x53d], 0xbb
push 1
push eax
call fcn.1013efe0
push esi
push 1
lea eax, [ebp - 0x53d]
mov byte [ebp - 0x53d], 0xbf
push 1
push eax
call fcn.1013efe0
mov eax, dword [ebp - 0x548]
push esi
dec eax
push eax
push 1
push dword [ebp - 0x544]
call fcn.1013efe0
add esp, 0x40
push esi
call fcn.1013f0ae
add esp, 4
push edi
call fcn.10050e00
push ebx
call fcn.10050e00
push dword [ebp - 0x544]
call fcn.10050e00
mov eax, dword [ebp - 0x560]
add esp, 0xc
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x101c44c0
je 0x100a1ca1
push eax
call fcn.10050e00
add esp, 4
lea ecx, [ebp - 0x594]
call fcn.10106400
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10109ec2
mov esp, ebp
pop ebp
ret