Function at 0x4118d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
push 0x40
push dword [esi]
lea ecx, [esi + 4]
call fcn.004101e0
imul edi, dword [ebp + 8], 0x68
lea edx, [esp + 0x20]
mov eax, dword [esi + 0x20]
push 0
push edx
mov dword [esp + 0x24], edi
mov ecx, dword [edi + eax + 0x30]
mov eax, dword [edi + eax + 0x34]
push eax
push ecx
push dword [esi + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esi + 0x20]
add eax, edi
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4119ab
mov eax, dword [eax + 8]
add eax, 0x100
push 1
push eax
call fcn.00563978
mov ecx, dword [esi + 0x20]
add esp, 8
mov ebx, eax
cmp dword [ecx + edi + 0xc], 0
mov edx, dword [ecx + edi + 8]
ja 0x41194e
test edx, edx
je 0x41196c
mov dword [esp + 0x1c], 0
test edx, edx
je 0x41196c
push 0
lea eax, [esp + 0x20]
push eax
push edx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 8]
test eax, eax
je 0x411981
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x20]
push dword [eax + edi + 8]
push ebx
push dword [ebp + 0x10]
call fcn.0055acc0
add esp, 0xc
push ebx
call fcn.0055de73
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 1
jne 0x411a6c
mov eax, dword [eax]
add eax, 0x100
push ecx
push eax
call fcn.00563978
mov ecx, dword [esi + 0x20]
add esp, 8
mov ebx, eax
cmp dword [edi + ecx + 4], 0
mov eax, dword [edi + ecx]
ja 0x4119d8
test eax, eax
je 0x4119f6
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4119f6
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 8]
test eax, eax
je 0x411a0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x20]
mov ecx, ebx
mov eax, dword [eax + edi + 0x14]
xor dword [ebx], eax
lea eax, [esp + 0x1c]
mov esi, dword [esi + 0x20]
add esi, edi
push eax
mov edi, dword [esi]
mov edx, edi
call fcn.0041bb90
add esp, 4
test al, al
je 0x411a55
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0x1c]
jb 0x411a55
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.snappy::ByteArraySource.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call fcn.0041be70
push ebx
call fcn.0055de73
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [eax + 0xc], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
jb 0x411b8f
ja 0x411a8b
cmp dword [eax + 8], 0
jbe 0x411b8f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
nop dword [eax + eax]
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 4
lea eax, [esp + 0x18]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
add eax, 0x100
push 1
push eax
call fcn.00563978
mov ebx, eax
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x411af7
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [eax + edi + 8]
mov eax, dword [eax + ecx + 0x14]
mov ecx, ebx
xor dword [ebx], eax
lea eax, [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
call fcn.0041bb90
add esp, 4
test al, al
je 0x411b54
cmp edi, dword [esp + 0x10]
jb 0x411b54
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x2c]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], vtable.snappy::ByteArraySource.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
call fcn.0041be70
test al, al
mov dword [esp + 0x2c], vtable.snappy::Source.0
cmovne edi, dword [esp + 0x10]
push ebx
call fcn.0055de73
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x18]
add ecx, edi
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x1c]
adc edx, 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp edx, dword [eax + edi + 0xc]
jb 0x411aa0
ja 0x411b8f
cmp ecx, dword [eax + edi + 8]
jb 0x411aa0
mov eax, dword [esi + 8]
test eax, eax
je 0x411ba4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc