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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
mov eax, edx
mov dword [ebp - 0x30], edi
push ecx
push eax
mov dword [ebp - 0x24], eax
mov ebx, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10033d00
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10033d00
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jne 0x10033d00
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jne 0x10033d00
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x1c]
mov dword [ebp - 8], edi
xor eax, eax
mov dword [ebp - 0xc], edi
mov ecx, esi
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
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 - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10031241
test eax, eax
je 0x10033d00
cmp dword [ebp - 0x1c], ebx
je 0x10033d00
cmp dword [ebp - 0x20], ebx
je 0x10033d00
lea eax, [ebp - 0x28]
inc ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
call fcn.10031271
test eax, eax
je 0x10033d00
mov edi, dword [ebp - 8]
test edi, edi
je 0x10033d00
cmp dword [ebp - 0xc], 0
je 0x10033d00
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x34]
mov eax, esi
or eax, ecx
je 0x10033d00
cmp edx, ecx
jl 0x10033c1f
jg 0x10033c22
cmp dword [ebp - 0x18], esi
ja 0x10033c22
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edx
push eax
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10033c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10033cdd
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10033ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10033cdd
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
push dword [ebp - 0xc]
push edi
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10033cdd
xor ebx, ebx
inc ebx
add dword [ebp - 0x10], esi
mov eax, esi
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push 0
pop edx
adc dword [ebp - 0x14], edx
sub esi, eax
mov dword [ebp - 0x34], esi
sbb ecx, edx
mov dword [ebp - 0x30], ecx
test ebx, ebx
jne 0x10033c0a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4