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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085f20
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100934c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
push 0
push 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + 0x10], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x100017d9
mov eax, dword [ebp - 0x28]
and eax, 1
je 0x100017d9
mov ecx, dword [ebp - 0x28]
and ecx, 0x26
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10001898
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x10001833
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.BavAs:_createfile__s__failed__08x___phase_1.
push 4
push 0x5e
push 0x1008d2dc
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x18
xor eax, eax
jmp 0x100019cb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.10001bb0
movzx ecx, al
test ecx, ecx
jne 0x1000184d
xor eax, eax
jmp 0x100019cb
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10001898
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BavAs:_CreateFile_Failed__Error_Code:__d__File:__s
push 4
push 0x69
push 0x1008d358
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x18
xor eax, eax
jmp 0x100019cb
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100018bc
cmp dword [ebp - 0x1c], 0
jle 0x100018cd
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100019cb
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.10079e01
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
jmp 0x10001916
mov dword [ebp - 4], 0xffffffff
jmp 0x10001927
cmp dword [ebp - 0x14], 0
jne 0x1000193e
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100019cb
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001969
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x20]
je 0x100019aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BavAs:_ReadFile_Failed__Error_Code:__d
push 4
push 0x8c
push 0x1008d3c0
call dword [sym.imp.log.dll_WriteLog]
add esp, 0x14
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10079ee7
add esp, 4
xor eax, eax
jmp 0x100019cb
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4