Function at 0x42e730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x174], 0
je 0x42e8a3
cmp dword [edi + 0x168], 1
jne 0x42e8a3
mov edx, dword [edi + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
test edx, edx
je 0x42e78a
lea esi, [ebp - 0x20]
push esi
push ecx
push eax
push dword [ebp + 8]
push edx
call fcn.0042bff0
add esp, 0x14
test al, al
je 0x42e8a3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
jmp 0x42e7e6
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
shl ebx, 5
add ebx, edi
push eax
lea ecx, [ebx + 0x28]
call fcn.00404540
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0x28]
call fcn.004049a0
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x42e7b9
mov ecx, dword [ebx + 0x2c]
cmp ecx, dword [ebx + 0x2c]
je 0x42e8a3
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x42e8a3
mov ebx, dword [ebp + 0x1c]
mov esi, ebx
and esi, 1
mov dword [ebp + 8], esi
lea esi, [edx + 0x10]
jne 0x42e803
mov esi, eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42e812
cmp dword [ecx], esi
jb 0x42e8a3
mov dword [ecx], esi
test eax, eax
je 0x42e9cd
shr ebx, 1
and ebx, 0xffffff01
cmp dword [ebp + 8], 0
je 0x42e8ae
push ebx
lea eax, [edi + 0x178]
push eax
lea ecx, [ebp + 0xc]
call fcn.0042a8a0
mov eax, dword [ebp - 0x20]
push 0
add eax, 0xfffffff0
push eax
push dword [edi + 0xc]
call fcn.004f0f0b
add esp, 0xc
test eax, eax
js 0x42e892
push dword [edi + 0xc]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
add esi, 0x10
push esi
push 1
push eax
call fcn.004f0b7a
add esp, 0x10
cmp eax, esi
jne 0x42e892
cmp byte [ebp + 0x10], 0
je 0x42e9cd
push dword [ebp + 0xc]
call fcn.004e38a2
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [ebp + 0x10], 0
je 0x42e8a3
push dword [ebp + 0xc]
call fcn.004e38a2
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0x14]
mov byte [ebp + 8], bl
cmp ecx, 1
jne 0x42e9ac
cmp dword [ebp - 0xc], esi
jne 0x42e909
cmp edx, esi
jne 0x42e909
lea eax, [edi + 0x178]
mov dword [ebp + 8], eax
test bl, bl
je 0x42e8e4
push eax
call fcn.004e387d
add esp, 4
test eax, eax
jne 0x42e9d8
mov eax, dword [ebp - 0x20]
push 0
push eax
push dword [edi + 0xc]
call fcn.004f0f0b
add esp, 0xc
test eax, eax
jns 0x42e910
test bl, bl
je 0x42e909
mov eax, dword [ebp + 8]
push eax
call fcn.004e38a2
add esp, 4
xor al, al
jmp 0x42e9c5
push dword [edi + 0xc]
mov eax, dword [ebp + 0x18]
push dword [ebp - 0x18]
push 1
push eax
call fcn.004f0b7a
add esp, 0x10
cmp eax, dword [ebp - 0x18]
je 0x42e943
test bl, bl
je 0x42e909
lea eax, [edi + 0x178]
push eax
call fcn.004e38a2
add esp, 4
xor al, al
jmp 0x42e9c5
test bl, bl
je 0x42e956
lea eax, [edi + 0x178]
push eax
call fcn.004e38a2
add esp, 4
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x42e9a8
push esi
push dword [ebp + 0x18]
push 0
call fcn.00436c10
add esp, 0xc
cmp eax, edi
je 0x42e9a8
call fcn.00417940
cmp eax, 2
jg 0x42e9a4
push str.CRC_mismatch__n
push 2
call fcn.00417f70
add esp, 8
test al, al
jne 0x42e9a4
push str.Fossilize_ERROR:_CRC_mismatch__n
push 2
call fcn.004ee433
add esp, 4
push eax
call fcn.00401df0
add esp, 8
xor al, al
jmp 0x42e9c5
mov al, 1
jmp 0x42e9c5
cmp ecx, 2
jne 0x42e8a3
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
mov ecx, edi
call fcn.0042bd20
test al, al
je 0x42e8a3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push eax
call fcn.004e395b
int3