Function at 0x10001360
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, dword [ebp + 0xc]
sub esp, 0x20
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ecx, eax
mov eax, 0x8007000e
test ecx, ecx
je 0x10001964
mov ebx, dword [ebp + 8]
push 0
push 0
push edi
mov dword [esp + 0xc], ecx
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x2c], 0x4034b50
mov dword [esp + 0x30], 0x80014
mov word [esp + 0x34], 8
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], 0
mov dword [esp + 0x3e], 0
mov dword [esp + 0x42], 0
dec edi
mov word [esp + 0x46], di
mov edi, ebx
mov word [esp + 0x48], 0
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
lea esi, [esp + 0x2c]
push edx
push 0x1e
push esi
push eax
call dword [ecx + 0x10]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x50]
cmp ecx, 0x1e
jne 0x10001552
add dword [edi + 0x14], 0x1e
test eax, eax
jns 0x10001488
test byte [0x10017018], 4
je 0x10001488
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x1e
mov dword [esp + 0xc], str.Failed_to_write_output__p__size__lu__written__lu__hr__lx._n
mov dword [esp + 8], str.compress_write
call sym._wine_dbg_log
add esp, 0x20
mov esi, dword [ebp + 0x14]
mov ebx, edi
movzx edi, word [esp + 0x46]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push edi
push dword [esp + 8]
push eax
call dword [ecx + 0x10]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x50]
cmp ecx, edi
jne 0x10001570
add dword [ebx + 0x14], edi
test eax, eax
jns 0x100014f3
test byte [0x10017018], 4
je 0x100014f3
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_write_output__p__size__lu__written__lu__hr__lx._n
mov dword [esp + 8], str.compress_write
call sym._wine_dbg_log
add esp, 0x20
push 0
push 0
push 0
call dword [sym.imp.ntdll.dll_RtlComputeCrc32]
mov dword [esp + 4], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
sub esp, 0x14
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [eax + 0x14]
lea eax, [esi + 1]
cmp eax, 5
jae 0x1000158e
mov edi, dword [esi*4 + 0x10010104]
jmp 0x100015bb
mov dword [edi + 0x18], 0x80004005
mov eax, 0x80004005
test byte [0x10017018], 4
jne 0x10001459
jmp 0x10001488
mov dword [ebx + 0x18], 0x80004005
mov eax, 0x80004005
test byte [0x10017018], 4
jne 0x100014c4
jmp 0x100014f3
mov edi, 0xffffffff
test byte [0x10017018], 4
je 0x100015bb
sub esp, 0x14
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Unsupported_compression_options__d._n
mov dword [esp + 8], str.compress_write_content
call sym._wine_dbg_log
add esp, 0x14
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
xorps xmm1, xmm1
movsd qword [esp + 0x80], xmm1
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x70], dbg.zalloc
mov dword [esp + 0x74], dbg.zfree
sub esp, 0x20
movaps xmm0, xmmword [0x10010010]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 0x1c], 0x38
mov dword [esp + 0x18], 0x100100a7
call dbg.deflateInit2_
add esp, 0x20
test eax, eax
je 0x10001647
test byte [0x10017018], 4
je 0x10001647
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_allocate_memory_in_deflateInit2__ret__d._n
mov dword [esp + 8], str.compress_write_content
call sym._wine_dbg_log
add esp, 0x14
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
lea edi, [eax + 0x801c]
mov dword [esp + 0x10], esi
jmp 0x10001672
cmp dword [esp + 0x14], 0x7fff
mov esi, dword [esp + 0x10]
jbe 0x100017aa
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
lea edx, [esp + 8]
push edx
push 0x8000
push esi
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x100017a4
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], esi
push eax
push esi
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_RtlComputeCrc32]
mov dword [esp + 4], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x14], eax
cmp eax, 0x8000
setb cl
shl ecx, 2
mov dword [esp + 0x18], ecx
jmp 0x100016e6
add dword [ebx + 0x14], esi
test eax, eax
js 0x10001767
cmp dword [esp + 0x60], 0
jne 0x10001660
mov dword [esp + 0x60], 0x8000
mov dword [esp + 0x5c], edi
push dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
call dbg.deflate
add esp, 8
test eax, eax
jns 0x10001730
test byte [0x10017018], 4
je 0x10001730
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_deflate__ret__d._n
mov dword [esp + 8], str.compress_write_content
call sym._wine_dbg_log
add esp, 0x14
nop
mov esi, 0x8000
sub esi, dword [esp + 0x60]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push esi
push edi
push eax
call dword [ecx + 0x10]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x100016d0
mov dword [ebx + 0x18], 0x80004005
mov eax, 0x80004005
test byte [0x10017018], 4
je 0x100016db
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Failed_to_write_output__p__size__lu__written__lu__hr__lx._n
mov dword [esp + 8], str.compress_write
call sym._wine_dbg_log
add esp, 0x20
jmp 0x100016db
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
lea ebx, [esp + 0x50]
push ebx
call dbg.deflateEnd
add esp, 4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0x8074b50
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
lea esi, [esp + 0x1c]
push ebx
push 0x10
push esi
push eax
call dword [ecx + 0x10]
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 0x50]
cmp ecx, 0x10
jne 0x10001805
add dword [edi + 0x14], 0x10
test eax, eax
jns 0x10001858
test byte [0x10017018], 4
jne 0x1000181e
jmp 0x10001964
mov dword [edi + 0x18], 0x80004005
mov eax, 0x80004005
test byte [0x10017018], 4
je 0x10001964
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], str.Failed_to_write_output__p__size__lu__written__lu__hr__lx._n
mov dword [esp + 8], str.compress_write
call sym._wine_dbg_log
add esp, 0x20
mov eax, dword [edi + 0x18]
test eax, eax
js 0x10001964
movzx eax, word [esp + 0x46]
movzx esi, ax
lea eax, [esi + 0x2e]
push eax
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
test eax, eax
je 0x10001944
mov edi, eax
mov dword [eax], 0x2014b50
mov eax, dword [esp + 0x30]
mov word [edi + 4], ax
mov dword [edi + 6], eax
movzx eax, word [esp + 0x34]
mov word [edi + 0xa], ax
mov eax, dword [esp + 0x36]
mov dword [edi + 0xc], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [edi + 0x10], xmm0
mov eax, dword [esp + 0x28]
mov dword [edi + 0x18], eax
mov word [edi + 0x1c], si
mov eax, dword [esp + 0xc]
mov dword [edi + 0x2a], eax
mov eax, edi
add eax, 0x2e
push esi
mov esi, dword [esp + 4]
push esi
push eax
call sym._memcpy
add esp, 0xc
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
lea ecx, [edx + 1]
cmp eax, ecx
jae 0x10001949
cmp ecx, 0x3fffffff
ja 0x10001955
cmp eax, 5
mov edx, 4
cmovae edx, eax
nop dword [eax + eax]
mov eax, edx
cmp edx, ecx
jae 0x10001910
lea edx, [eax + eax]
cmp eax, 0x20000000
jb 0x10001900
cmp eax, ecx
mov esi, 0x3fffffff
cmovae esi, eax
lea eax, [esi*4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ucrtbase.dll_realloc]
add esp, 8
test eax, eax
je 0x10001955
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov edx, dword [ebx + 4]
lea ecx, [edx + 1]
jmp 0x1000194b
push dword [esp]
jmp 0x10001956
mov eax, dword [ebx]
mov dword [ebx + 4], ecx
mov dword [eax + edx*4], edi
xor eax, eax
jmp 0x10001964
push edi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov eax, 0x8007000e
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret