Function at 0x100748c0
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 0x100d9730
mov eax, dword fs:[0]
push eax
mov eax, 0x14c8
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 0x10074937
or eax, 0xffffffff
jmp 0x10074cd7
cmp dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
jne 0x1007494a
mov eax, 0xfffffffe
jmp 0x10074cd7
lea eax, [ebp - 0x14c4]
mov dword [ebp - 0x14c4], 0
push eax
push edi
mov dword [ebp - 0x14c0], 0
mov dword [ebp - 0x14bc], 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 0x10074983
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 0x100749ad
mov eax, 0xfffffffd
jmp 0x10074cd7
lea eax, [ebp - 0x14cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100749d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
jmp 0x10074cd7
mov eax, dword [ebp - 0x14cc]
or eax, dword [ebp - 0x14c8]
jne 0x10074a8a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ebx, dword [ebp - 0x14ac]
cmp dword [ebx + 0x14], 0
je 0x10074cd5
push 0
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
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 0x10074a41
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 0x10074cd5
push 0
push dword [ebp - 0x14c0]
call fcn.10074720
mov dword [ebp - 0x14b8], eax
lea eax, [ebp - 0x14b8]
mov dword [ebp - 0x14b4], edx
jmp 0x10074cc3
cmp dword [esi + 0x14], 0x10
jb 0x10074a92
mov esi, dword [esi]
lea ecx, [ebp - 0x38]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10074a97
push dword [ebx]
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_
mov ebx, dword [ebp - 0x14ac]
lea eax, [ebp - 0x2c]
add esp, 0xc
mov ecx, ebx
push 0
push eax
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_
cmp dword [ebx + 0x18], 8
lea ecx, [ebx + 4]
jb 0x10074af7
mov ecx, dword [ebx + 4]
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10074b29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffb
jmp 0x10074cd7
mov eax, dword [0x100f1dd4]
lea esi, [ebp - 0x9c]
movq xmm0, qword [str.Guyitoufa_S2]
lea ecx, [esi + 1]
mov dword [ebp - 0x94], eax
mov al, byte [0x100f1dd8]
movq qword [ebp - 0x9c], xmm0
mov byte [ebp - 0x90], al
mov al, byte [esi]
inc esi
test al, al
jne 0x10074b58
push 0
sub esi, ecx
mov dword [ebp - 0x14b0], 0
lea eax, [ebp - 0x14b0]
inc esi
push eax
push esi
lea eax, [ebp - 0x9c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14b0], esi
je 0x10074bb1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x14ac]
push ecx
call sym.XNewLookSch.dll_bool___cdecl_LFile::delete_file_class_LString_const__
add esp, 4
mov eax, 0xfffffffa
jmp 0x10074cd7
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14a8]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x109c]
mov dword [ebp - 0x14a8], 0
push eax
push edi
call esi
test eax, eax
je 0x10074c67
mov eax, dword [ebp - 0x14a8]
test eax, eax
je 0x10074c67
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 - 0x14b4], 0
lea eax, [ebp - 0x14b4]
push 0
push eax
push dword [ebp - 0x14a8]
lea eax, [ebp - 0x109c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14a8]
cmp eax, dword [ebp - 0x14b4]
jne 0x10074cf5
push 0
lea eax, [ebp - 0x14a8]
mov dword [ebp - 0x14a8], 0
push eax
push 0x1000
lea eax, [ebp - 0x109c]
push eax
push edi
call esi
test eax, eax
jne 0x10074be1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
mov eax, dword [ebp - 0x14ac]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x10074c84
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10074cd5
push 0
push dword [ebp - 0x14c0]
call fcn.10074720
mov dword [ebp - 0x14d4], eax
lea eax, [ebp - 0x14d4]
mov dword [ebp - 0x14d0], 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 ebx
call esi
mov ecx, dword [ebp - 0x14ac]
push ecx
call sym.XNewLookSch.dll_bool___cdecl_LFile::delete_file_class_LString_const__
add esp, 4
mov eax, 0xffffffed
jmp 0x10074cd7