Function at 0x4114e0
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.0040ff00
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 0x4115bb
mov eax, dword [eax + 8]
add eax, 0x100
push 1
push eax
call fcn.00562e6c
mov ecx, dword [esi + 0x20]
add esp, 8
mov ebx, eax
cmp dword [ecx + edi + 0xc], 0
mov edx, dword [ecx + edi + 8]
ja 0x41155e
test edx, edx
je 0x41157c
mov dword [esp + 0x1c], 0
test edx, edx
je 0x41157c
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 0x411591
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.0055a7b0
add esp, 0xc
push ebx
call fcn.0055d993
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 1
jne 0x41167c
mov eax, dword [eax]
add eax, 0x100
push ecx
push eax
call fcn.00562e6c
mov ecx, dword [esi + 0x20]
add esp, 8
mov ebx, eax
cmp dword [edi + ecx + 4], 0
mov eax, dword [edi + ecx]
ja 0x4115e8
test eax, eax
je 0x411606
mov dword [esp + 0x1c], 0
test eax, eax
je 0x411606
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 0x41161b
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.0041b7c0
add esp, 4
test al, al
je 0x411665
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0x1c]
jb 0x411665
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.0041ba90
push ebx
call fcn.0055d993
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 0x41179f
ja 0x41169b
cmp dword [eax + 8], 0
jbe 0x41179f
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.00562e6c
mov ebx, eax
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x411707
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.0041b7c0
add esp, 4
test al, al
je 0x411764
cmp edi, dword [esp + 0x10]
jb 0x411764
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.0041ba90
test al, al
mov dword [esp + 0x2c], vtable.snappy::Source.0
cmovne edi, dword [esp + 0x10]
push ebx
call fcn.0055d993
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 0x4116b0
ja 0x41179f
cmp ecx, dword [eax + edi + 8]
jb 0x4116b0
mov eax, dword [esi + 8]
test eax, eax
je 0x4117b4
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