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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x1099a38]
and dword [ebp - 0xc30], 0
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov edi, dword [ebp + 8]
push 0x1c
mov dword [ebp - 4], eax
call ebx
test eax, eax
pop ecx
mov dword [ebp - 0xc28], eax
jne 0x1093af0
or eax, 0xffffffff
jmp 0x1093d76
mov eax, edi
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1093af6
push 0x109386b
push 0x109380b
push 0
sub eax, esi
push 0x10937db
inc eax
push eax
push edi
push dword [ebp - 0xc28]
call fcn.01093553
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1093d6f
mov esi, 0x80
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 3
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc2c], eax
jne 0x1093b7a
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102f2f4
push 1
call fcn.0109378e
add esp, 0x10
or eax, 0xffffffff
jmp 0x1093d75
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jbe 0x1093d4d
lea eax, [esi + 1]
push eax
call ebx
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0xc38], ebx
jne 0x1093bc6
push edi
push 0x102f2b8
push 1
call fcn.0109378e
add esp, 0xc
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1093b72
push 0
lea eax, [ebp - 0xc3c]
push eax
push esi
push ebx
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1093d36
push 0xd
mov esi, ebx
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_strchr]
jmp 0x1093d22
mov eax, dword [ebp - 0xc24]
mov byte [eax], 0
inc eax
push 0x5b
push esi
mov dword [ebp - 0xc24], eax
mov byte [eax], 0
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1093c70
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1093c18
sub eax, edx
cmp eax, 0x400
jae 0x1093d18
xor eax, eax
mov ecx, 0x107
lea edi, [ebp - 0x420]
push esi
rep stosd dword es:[edi], eax
call fcn.010938c0
push esi
push 0x3ff
lea eax, [ebp - 0x404]
push eax
call fcn.0108c975
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xc28]
call fcn.01093685
mov dword [ebp - 0xc30], eax
jmp 0x1093d18
cmp dword [ebp - 0xc30], 0
je 0x1093d18
push 0x3d
push esi
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc34], eax
je 0x1093c98
mov byte [eax], 0
inc eax
mov dword [ebp - 0xc34], eax
xor eax, eax
test esi, esi
mov ecx, 0x200
lea edi, [ebp - 0xc20]
rep stosd dword es:[edi], eax
je 0x1093cd2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1093cb0
sub eax, edx
cmp eax, 0x400
jae 0x1093cd2
push esi
push 0x3ff
lea eax, [ebp - 0xc20]
push eax
call fcn.0108c975
mov eax, dword [ebp - 0xc34]
test eax, eax
je 0x1093d06
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1093cdf
sub eax, edx
cmp eax, 0x400
jae 0x1093d06
push dword [ebp - 0xc34]
lea eax, [ebp - 0x820]
push 0x3ff
push eax
call fcn.0108c975
lea eax, [ebp - 0xc20]
push eax
push dword [ebp - 0xc30]
call fcn.01093685
mov esi, dword [ebp - 0xc24]
inc esi
push 0xd
push esi
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc24], eax
jne 0x1093bf5
jmp 0x1093d4d
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102f288
push 1
call fcn.0109378e
add esp, 0x10
cmp dword [ebp - 0xc38], 0
je 0x1093d63
push dword [ebp - 0xc38]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc28]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0106bc50
leave
ret 4