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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9770
mov eax, dword fs:[0]
push eax
mov eax, 0x152c
call fcn.1008c5b0
mov eax, dword [0x101120a8]
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 esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x14ac], eax
lea eax, [ebp - 0x2c]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x2c]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
jne 0x10075207
or eax, 0xffffffff
jmp 0x1007562a
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x14b0], eax
jne 0x10075220
mov eax, 0xfffffffe
jmp 0x1007562a
lea eax, [ebp - 0x14d4]
mov dword [ebp - 0x14d4], 0
push eax
push edi
mov dword [ebp - 0x14d0], 0
mov dword [ebp - 0x14cc], 0
call sym.XNewLookSch.dll_int___cdecl_LFile::get_file_time_class_LString_const___class_LFileTime__
lea eax, [edi + 4]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x10075259
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10075283
mov eax, 0xfffffffd
jmp 0x1007562a
lea eax, [ebp - 0x14c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100752a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
jmp 0x1007562a
mov eax, dword [0x100f1dd4]
lea ecx, [ebp - 0x1538]
movq xmm0, qword [str.Guyitoufa_S2]
lea edx, [ecx + 1]
mov dword [ebp - 0x1530], eax
mov al, byte [0x100f1dd8]
movq qword [ebp - 0x1538], xmm0
mov byte [ebp - 0x152c], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100752d5
sub ecx, edx
lea ebx, [ecx + 1]
mov ecx, dword [ebp - 0x14c8]
mov eax, ecx
or eax, dword [ebp - 0x14c4]
jne 0x10075393
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ebx, dword [ebp - 0x14ac]
lea eax, [ebp - 0x2c]
push 0
push eax
mov ecx, ebx
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_path_bool_
push eax
mov dword [ebp - 4], 0
call sym.XNewLookSch.dll_int___cdecl_LFile::make_dir_class_LString_const__
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
push ebx
call sym.XNewLookSch.dll_bool___cdecl_LFile::delete_file_class_LString_const__
push ebx
call sym.XNewLookSch.dll_int___cdecl_LFile::touch_class_LString_const__
lea eax, [ebx + 4]
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x1007534a
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x100
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x10075628
push 0
push dword [ebp - 0x14d0]
call fcn.10074720
mov dword [ebp - 0x14b4], eax
lea eax, [ebp - 0x14b4]
mov dword [ebp - 0x14b0], edx
jmp 0x10075616
mov eax, ebx
cdq
cmp dword [ebp - 0x14c4], edx
jg 0x100753b5
jl 0x100753a4
cmp ecx, eax
ja 0x100753b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffe9
jmp 0x1007562a
push 0x64
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.1008da10
add esp, 0xc
mov dword [ebp - 0x14c0], 0
lea eax, [ebp - 0x14c0]
push 0
push eax
push ebx
lea eax, [ebp - 0x9c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14c0], ebx
je 0x10075403
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff8
jmp 0x1007562a
mov ecx, str.Guyitoufa_S2
lea eax, [ebp - 0x9c]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10075430
test dl, dl
je 0x1007542c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10075430
add eax, 2
add ecx, 2
test dl, dl
jne 0x10075410
xor eax, eax
jmp 0x10075435
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007544a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff7
jmp 0x1007562a
mov ebx, dword [ebp - 0x14ac]
lea eax, [ebp - 0x2c]
push 0
push eax
mov ecx, ebx
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_path_bool_
push eax
mov dword [ebp - 4], 1
call sym.XNewLookSch.dll_int___cdecl_LFile::make_dir_class_LString_const__
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
add ebx, 4
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x10075489
mov eax, dword [ebx]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
mov dword [ebp - 0x14b8], eax
cmp eax, 0xffffffff
jne 0x100754bf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffb
jmp 0x1007562a
cmp dword [esi + 0x14], 0x10
jb 0x100754c7
mov esi, dword [esi]
lea ecx, [ebp - 0x38]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100754d0
mov eax, dword [ebp - 0x14b0]
push dword [eax]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14a4]
push eax
call sym.XNewLookSch.dll_void___cdecl_EARC4Setup_struct_earc4_state___unsigned_char___int_
add esp, 0xc
mov dword [ebp - 0x14a8], 0
lea eax, [ebp - 0x14a8]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x109c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100755be
mov esi, dword [ebp - 0x14b8]
nop dword [eax]
mov eax, dword [ebp - 0x14a8]
test eax, eax
je 0x100755be
push 0
push eax
lea eax, [ebp - 0x109c]
push eax
lea eax, [ebp - 0x14a4]
push eax
call sym.XNewLookSch.dll_void___cdecl_EARC4Crypt_struct_earc4_state___unsigned_char___long_long___int64__
add esp, 0x10
mov dword [ebp - 0x14b0], 0
lea eax, [ebp - 0x14b0]
push 0
push eax
push dword [ebp - 0x14a8]
lea eax, [ebp - 0x109c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14b0]
cmp eax, dword [ebp - 0x14a8]
jne 0x10075648
push 0
lea eax, [ebp - 0x14a8]
mov dword [ebp - 0x14a8], 0
push eax
push 0x1000
lea eax, [ebp - 0x109c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10075530
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14b8]
call edi
cmp dword [ebx + 0x14], 8
jb 0x100755d7
mov ebx, dword [ebx]
push 0
push 0x80
push 3
push 0
push 1
push 0x100
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10075628
push 0
push dword [ebp - 0x14d0]
call fcn.10074720
mov dword [ebp - 0x14bc], eax
lea eax, [ebp - 0x14bc]
mov dword [ebp - 0x14b8], edx
add esp, 8
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
xor eax, eax
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.1008bffe
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x14b8]
call esi
push dword [ebp - 0x14ac]
call sym.XNewLookSch.dll_bool___cdecl_LFile::delete_file_class_LString_const__
add esp, 4
mov eax, 0xffffffeb
jmp 0x1007562a