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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1015bfa0
push 0xffffffffffffffff
push 0x1018f8d7
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101cd7b4]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov edi, dword [ebp + 0x1014]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1010]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100fd13c
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 + 0x1000]
xor ecx, ebp
call fcn.10159cce
add ebp, 0x1004
leave
ret
and eax, 0x10
xor ebx, ebx
push ebx
mov dword [ebp - 0x30], eax
shl eax, 0x15
push eax
push 3
push ebx
push 1
push accept
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x2c], edi
je 0x100fd117
push edi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x48]
push eax
call fcn.100fce82
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.101596b0
movzx eax, word [ebp - 0x28]
movzx ecx, word [ebp - 0x24]
or dword [ebp - 0x5c], esi
add esp, 0xc
push dword [ebp - 0x10]
shl eax, 0x10
or eax, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x64], eax
call fcn.100fd073
cmp byte [ebp + 0x1018], bl
je 0x100fd257
push 0xfde9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.10104253
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.100fc862
push 0x2f
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.100fcea0
push 0x800
push ebx
push ebx
push ebx
push ebx
push 8
push 0xfffffffffffffff1
push ebx
push 9
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.101041d6
mov ecx, dword [ebp - 0x14]
add esp, 0x48
add ecx, 0xfffffff0
test eax, eax
je 0x100fd2c2
call fcn.100fc862
lea eax, [ebp - 0x48]
push eax
call fcn.100fcc83
pop ecx
jmp 0x100fd117
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.10104253
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.100fc862
push 0x2f
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.100fcea0
push 9
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.1010421b
mov ecx, dword [ebp - 0x14]
add esp, 0x28
add ecx, 0xfffffff0
test eax, eax
je 0x100fd2c2
call fcn.100fc862
lea eax, [ebp - 0x48]
push eax
call fcn.100fcc83
pop ecx
mov eax, ebx
jmp 0x100fd119
call fcn.100fc862
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push fcn.10103c14
push eax
call fcn.100fce82
add esp, 0xc
cmp dword [ebp - 0x30], ebx
je 0x100fd2ef
lea eax, [ebp - 0x3c]
push eax
call fcn.100fccad
xor ebx, ebx
pop ecx
inc ebx
jmp 0x100fd2b1
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100fd313
lea eax, [ebp - 0x3c]
push eax
call fcn.100fccad
pop ecx
jmp 0x100fd2b1
cmp dword [ebp - 0x1c], ebx
jl 0x100fd2e0
mov eax, dword [ebp - 0x20]
jg 0x100fd321
cmp eax, ebx
jbe 0x100fd2e0
mov esi, 0x1000
cmp dword [ebp - 0x1c], ebx
jl 0x100fd333
jg 0x100fd331
cmp eax, esi
jbe 0x100fd333
mov eax, esi
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100fd307
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call fcn.101033ab
add esp, 0xc
test eax, eax
jl 0x100fd307
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
sbb dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
jg 0x100fd331
jl 0x100fd2e0
cmp eax, ebx
ja 0x100fd326
jmp 0x100fd2e0
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x100fd3f9
xor eax, eax
pop ebp
ret
pop ebp
jmp 0x100fd0b4