Function at 0x101511a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x1015308
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x1015308
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x34]
jne 0x1015308
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jne 0x1015308
xor eax, eax
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x5c], esi
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.01019bbb
test eax, eax
je 0x1015308
cmp dword [ebp - 0x10], esi
je 0x1015308
cmp dword [ebp - 0x14], esi
je 0x1015308
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
call fcn.01019bf6
test eax, eax
je 0x1015308
cmp dword [ebp - 0xc], esi
je 0x1015308
cmp dword [ebp - 8], esi
je 0x1015308
push ebx
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
je 0x1015307
mov ebx, dword [ebp - 0x18]
xor eax, eax
cmp eax, dword [ebp - 0x20]
jl 0x101522e
jg 0x101522b
cmp ebx, dword [ebp - 0x24]
jbe 0x101522e
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp + 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call edi
test eax, eax
jne 0x1015274
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10152f2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x5c], esi
push dword [ebp + 0x10]
mov dword [ebp - 0x58], esi
call edi
test eax, eax
jne 0x10152ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10152f2
mov esi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call esi
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x10]
call esi
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov ecx, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10152e5
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
test eax, eax
jne 0x10152f2
mov dword [ebp - 4], 1
add dword [ebp - 0x2c], ebx
adc dword [ebp - 0x28], esi
sub dword [ebp - 0x24], ebx
sbb dword [ebp - 0x20], esi
cmp dword [ebp - 4], esi
jne 0x101520e
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc