Function at 0x42ea70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e645
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
mov esi, dword [edx + 0x160]
mov eax, dword [edx + 0x164]
cmp esi, eax
je 0x42eab3
cmp dword [edi + 0x168], 1
jne case.0x42ead0.2
sub eax, esi
sar eax, 2
cmp eax, 1
ja case.0x42ead0.2
mov eax, dword [edi + 0x168]
cmp eax, 4
ja case.default.0x42ead0
jmp dword [eax*4 + 0x42f0e8]
mov dword [edi + 0xc], 0
mov ecx, 0x10
mov eax, dword [edx + 0x160]
mov esi, 0x20
cmp eax, dword [edx + 0x164]
lea eax, [edi + 0x10]
cmove ecx, esi
or ecx, 0x8000
cmp dword [eax + 0x14], 0xf
jbe 0x42eb08
mov eax, dword [eax]
push 0x100
push ecx
push eax
call fcn.0042c930
add esp, 0xc
test eax, eax
js case.default.0x42ead0
push 0x51cb88
jmp 0x42eba3
cmp dword [edi + 0x24], 0xf
lea esi, [edi + 0x10]
mov eax, esi
jbe 0x42eb33
mov eax, dword [esi]
push 0x520818
push eax
call fcn.004f4c46
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne case.default.0x42ead0
cmp dword [esi + 0x14], 0xf
jbe 0x42eb50
mov esi, dword [esi]
push 0x51cb90
push esi
call fcn.004f4c46
jmp 0x42eba9
cmp dword [edi + 0x24], 0xf
lea eax, [edi + 0x10]
jbe 0x42eb68
mov eax, dword [eax]
push 0x51cb90
push eax
call fcn.004f4c46
jmp 0x42eba9
lea eax, [edi + 0x10]
mov dword [edi + 0xc], 0
cmp dword [eax + 0x14], 0xf
jbe 0x42eb87
mov eax, dword [eax]
push 0x180
push 0x8721
push eax
call fcn.0042c930
add esp, 0xc
test eax, eax
js case.default.0x42ead0
push 0x51cb90
push eax
call fcn.004f7129
mov dword [edi + 0xc], eax
add esp, 8
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0xc]
test ecx, ecx
je case.0x42ead0.2
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x160]
cmp edx, dword [eax + 0x164]
je 0x42ebed
mov eax, dword [edx]
mov dword [edi + 8], eax
mov al, 1
mov byte [edi + 0x174], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x168]
cmp eax, 3
je 0x42f0ab
cmp eax, 4
je 0x42f0ab
mov dword [ebp - 0x24], esi
cmp eax, 1
jne 0x42ec22
push 0x38
push 0
push 0
push ecx
call fcn.004f725c
lea eax, [edi + 0xc]
add esp, 0x10
mov dword [ebp - 0x24], eax
push 2
push 0
push dword [esi]
call fcn.004f521b
push dword [esi]
call fcn.004f58c2
push dword [esi]
mov ebx, eax
mov dword [ebp - 0x20], ebx
call fcn.004f5b4f
add esp, 0x14
test ebx, ebx
je 0x42f0a4
mov cl, byte [0x5aff88]
test cl, cl
jne 0x42f0a4
push dword [edi + 0xc]
lea eax, [ebp - 0xdc]
push 0x10
push 1
push eax
call fcn.004f4e8a
add esp, 0x10
cmp eax, 0x10
jne case.0x42ead0.2
lea ecx, [ebp - 0xdc]
mov edx, 0x5201bc
lea esi, [eax - 5]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne case.0x42ead0.2
add ecx, 4
add edx, 4
sub esi, 4
jae 0x42ec86
mov ax, word [ecx]
cmp ax, word [edx]
jne case.0x42ead0.2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne case.0x42ead0.2
movzx eax, byte [ebp - 0xcd]
sub eax, 5
cmp eax, 1
ja case.0x42ead0.2
mov ecx, 0x10
mov eax, ebx
mov dword [ebp - 0x10], ecx
cmp ebx, ecx
jbe 0x42f03b
jmp 0x42ece0
mov al, byte [0x5aff88]
test al, al
jne case.0x42ead0.2
lea esi, [ecx + 0x38]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x8c], 0
cmp esi, ebx
ja 0x42f06d
push dword [edi + 0xc]
lea eax, [ebp - 0x7c]
push 0x38
push 1
push eax
call fcn.004f4e8a
add esp, 0x10
cmp eax, 0x38
jne case.0x42ead0.2
movzx eax, byte [ebp - 0x52]
mov edx, esi
movzx esi, byte [ebp - 0x51]
movzx ebx, byte [ebp - 0x4d]
movzx ecx, byte [ebp - 0x49]
shl esi, 8
or esi, eax
shl ebx, 8
movzx eax, byte [ebp - 0x53]
shl esi, 8
or esi, eax
shl ecx, 8
movzx eax, byte [ebp - 0x54]
shl esi, 8
or esi, eax
mov dword [ebp - 0x10], edx
movzx eax, byte [ebp - 0x4e]
or ebx, eax
mov dword [ebp - 0x8c], esi
movzx eax, byte [ebp - 0x4f]
shl ebx, 8
or ebx, eax
movzx eax, byte [ebp - 0x50]
shl ebx, 8
or ebx, eax
movzx eax, byte [ebp - 0x4a]
or ecx, eax
mov dword [ebp - 0x88], ebx
movzx eax, byte [ebp - 0x4b]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x4c]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x46]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x84], ecx
movzx ecx, byte [ebp - 0x45]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x47]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x48]
shl ecx, 8
or ecx, eax
lea eax, [esi + edx]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x80], ecx
cmp eax, dword [ebp - 0x20]
ja 0x42effd
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x58]
push 0x10
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa0]
push 0
push eax
mov byte [ebp - 0x90], 0
mov byte [ebp - 0xa4], 0
call fcn.004f2627
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, 0xa
jae 0x42efd6
push 0x10
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.004f2651
add esp, 0xc
mov dword [ebp - 0x30], edx
mov ecx, eax
mov dword [ebp - 0xc4], esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
push edx
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, edi
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], 0
call fcn.004300a0
test al, al
je 0x42efd6
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
shl eax, 5
push ecx
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 0x28]
add ecx, edi
call fcn.00404450
mov ecx, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x2c], eax
add ecx, 0x28
lea eax, [ebp - 0x34]
add ecx, edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00404930
cmp dword [ebp - 0x38], 0
jne 0x42efd6
mov eax, dword [ebp - 0x1c]
add eax, edi
cmp dword [eax + 0x30], 0x6666666
je 0x42f0dc
add eax, 0x2c
mov dword [ebp - 0x44], eax
push 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
call fcn.004e9663
mov edx, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
lea ecx, [eax + 8]
mov eax, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x1c], eax
mov ebx, dword [ebp - 0x1c]
add ebx, 0x28
mov dword [ebp - 4], 1
add ebx, edi
mov eax, dword [ebx + 8]
fld dword [ebx]
add eax, 1
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
jns 0x42ef61
fadd dword [0x51d990]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
mov eax, dword [ebx + 0x1c]
fild dword [ebx + 0x1c]
test eax, eax
jns 0x42ef77
fadd dword [0x51d990]
fstp dword [ebp - 0x14]
fdiv dword [ebp - 0x14]
fcompi st(1)
fstp st(0)
jbe 0x42efb0
mov ecx, ebx
call fcn.0042c890
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov esi, dword [ebp - 0x2c]
add eax, 8
push esi
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00404930
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x42efb6
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov dword [ebp - 0x40], 0
push ecx
push esi
mov ecx, ebx
call fcn.0042c830
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
push 1
push esi
push dword [edi + 0xc]
call fcn.004f521b
add esp, 0xc
test eax, eax
js case.0x42ead0.2
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
add ecx, esi
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
jb 0x42ece0
jmp 0x42f038
call fcn.00418bb0
cmp eax, 1
jg 0x42f032
push str.Detected_sliced_file._Dropping_entries_from_here._n
push 1
call fcn.004191f0
add esp, 8
test al, al
jne 0x42f032
push str.Fossilize_WARN:_Detected_sliced_file._Dropping_entries_from_here._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
add esp, 8
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0x168], 0
jne 0x42f0c2
cmp ecx, ebx
je 0x42f0c2
push 0
push eax
push dword [edi + 0xc]
call fcn.004f521b
add esp, 0xc
test eax, eax
jns 0x42f0c2
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00418bb0
cmp eax, 1
jg 0x42f035
push str.Detected_sliced_file._Dropping_entries_from_here._n
push 1
call fcn.004191f0
add esp, 8
test al, al
jne 0x42f035
push str.Fossilize_WARN:_Detected_sliced_file._Dropping_entries_from_here._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
add esp, 8
jmp 0x42f035
mov eax, dword [ebp - 0x24]
push dword [eax]
jmp 0x42f0ac
push ecx
push 0x10
push 1
push 0x5201bc
call fcn.004f5aec
add esp, 0x10
cmp eax, 0x10
jne case.0x42ead0.2
mov ecx, dword [ebp - 0xc]
mov al, 1
mov byte [edi + 0x174], 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.unordered_map_set_too_long
call fcn.004e72d1
mov edi, edi
jmp 0x42f12d
push es
push 0
push eax
lea ebx, [edi + 0x20]
push ebx
call fcn.00438e70
add esp, 0xc
test eax, eax
je 0x42f33b
push ebx
call fcn.00438e50
push 0x200
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24c]
push 0
push eax
call fcn.004eb750
xor edi, edi
add esp, 0x10
cmp dword [ebp - 8], edi
jbe 0x42f2c8
nop
mov al, byte [0x5aff88]
test al, al
jne 0x42f397
push edi
push ebx
call fcn.00439100
add esp, 8
test eax, eax
jne 0x42f2bb
push 0x200
lea eax, [ebp - 0x24c]
push eax
push edi
push ebx
call fcn.00438de0
lea eax, [ebp - 0x24c]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f1b0
sub eax, edx
cmp eax, 0x28
jne 0x42f2bb
mov al, byte [ebp - 0x24c]
lea esi, [ebp - 0x24c]
test al, al
je 0x42f1ee
movzx eax, al
push eax
call fcn.004f61a8
add esp, 4
test eax, eax
je 0x42f2bb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x42f1d2
lea eax, [ebp - 0x69c]
push eax
push edi
push ebx
call fcn.00438d90
add esp, 0xc
test eax, eax
je 0x42f2bb
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x228]
push 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push 0
push eax
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x34], 0
call fcn.004f2627
mov esi, eax
add esp, 0xc
cmp esi, 0xa
jae 0x42f2bb
push 0x10
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004f2651
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push edx
push eax
push esi
call fcn.004300a0
test al, al
je 0x42f2bb
mov eax, dword [ebp - 0x674]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
add ecx, 0x70
lea eax, [ebp - 0x14]
shl esi, 5
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x4c]
add ecx, esi
push eax
call fcn.0042b260
inc edi
cmp edi, dword [ebp - 8]
jb 0x42f170
mov esi, dword [ebp - 0xc]
cmp dword [esi + 0x14], 0xf
jbe 0x42f2d0
mov esi, dword [esi]
push esi
push ebx
call fcn.0043b470
add esp, 8
test eax, eax
jne 0x42f325
call fcn.00418bb0
cmp eax, 2
jg 0x42f313
push str.Failed_to_initialize_ZIP_writer_from_reader._n
push 2
call fcn.004191f0
add esp, 8
test al, al
jne 0x42f313
push str.Fossilize_ERROR:_Failed_to_initialize_ZIP_writer_from_reader._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
add esp, 8
push ebx
call fcn.00438230
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov byte [eax + 0x1b4], 1
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x1b0], 1
je 0x42f3c2
cmp dword [esi + 0x14], 0xf
jbe 0x42f350
mov esi, dword [esi]
push 0
push 0
push esi
push ebx
call fcn.0043b2e0
add esp, 0x10
test eax, eax
jne 0x42f3a0
call fcn.00418bb0
cmp eax, 2
jg 0x42f397
push str.Failed_to_open_ZIP_archive_for_writing._Cannot_serialize_anything_to_disk._n
push 2
call fcn.004191f0
add esp, 8
test al, al
jne 0x42f397
push str.Fossilize_ERROR:_Failed_to_open_ZIP_archive_for_writing._Cannot_serialize_anything_to_disk._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x70]
mov byte [edi + 0x1b4], 1
lea edi, [esi + 0x140]
cmp esi, edi
je 0x42f3c2
mov ecx, esi
call fcn.004184e0
add esi, 0x20
cmp esi, edi
jne 0x42f3b4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret