Function at 0x101d1760
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x34
push ebx
push ebp
push esi
push edi
test eax, eax
je case.default.0x101d291f
cmp dword [eax + 0x20], 0
je case.default.0x101d291f
cmp dword [eax + 0x24], 0
je case.default.0x101d291f
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1c], edx
test edx, edx
je case.default.0x101d291f
cmp dword [edx], eax
jne case.default.0x101d291f
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
lea eax, [ecx - 0x3f34]
cmp eax, 0x1f
ja case.default.0x101d291f
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x28], ebx
test ebx, ebx
je case.default.0x101d291f
mov edi, dword [eax]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x101d17da
cmp dword [eax + 4], edi
jne case.default.0x101d291f
cmp ecx, 0x3f3f
jne 0x101d17ff
mov dword [edx + 4], 0x3f40
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [esp + 0x28], ecx
mov ecx, 0x3f40
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ecx
mov ebx, dword [eax + 0x10]
add ecx, 0xffffc0cc
mov ebp, dword [eax + 4]
mov esi, dword [edx + 0x40]
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x20]
mov ebx, dword [edx + 0x3c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], 0
cmp ecx, 0x1e
ja case.default.0x101d291f
jmp dword [ecx*4 + 0x101d2e98]
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x101d1854
mov dword [edx + 4], 0x3f40
jmp 0x101d2905
cmp esi, 0x10
jae 0x101d1886
nop dword [eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x10
jb 0x101d1860
mov ecx, dword [edx + 0xc]
test cl, 2
je 0x101d18e6
cmp ebx, 0x8b1f
jne 0x101d18e6
cmp dword [edx + 0x28], 0
jne 0x101d18a0
mov dword [edx + 0x28], 0xf
push 0
push 0
push 0
call fcn.101d35a0
mov ecx, dword [esp + 0x28]
push 2
mov dword [ecx + 0x1c], eax
lea eax, [esp + 0x34]
push eax
mov word [esp + 0x38], 0x8b1f
push dword [ecx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x34]
xor ebx, ebx
add esp, 0x18
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [edx + 0x1c], eax
mov dword [edx + 4], 0x3f35
jmp 0x101d2905
mov eax, dword [edx + 0x24]
mov dword [edx + 0x14], 0
test eax, eax
je 0x101d18fe
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [edx + 0xc]
test cl, 1
je 0x101d19ca
movzx ecx, bl
mov eax, ebx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
mov ecx, 0x1f
div ecx
test edx, edx
mov edx, dword [esp + 0x1c]
jne 0x101d19ca
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x101d1948
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.unknown_compression_method
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov eax, dword [edx + 0x28]
sub esi, 4
shr ebx, 4
mov ecx, ebx
mov dword [esp + 0x14], ebx
and ecx, 0xf
add ecx, 8
test eax, eax
jne 0x101d1966
mov dword [edx + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x101d19b3
cmp ecx, eax
ja 0x101d19b3
push 0
mov eax, 1
shl eax, cl
push 0
push 0
mov dword [edx + 0x18], eax
call fcn.101d3320
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x48]
shr ebx, 8
not ebx
and ebx, 2
mov dword [edx + 0x1c], eax
or ebx, 0x3f3d
mov dword [ecx + 0x30], eax
mov dword [edx + 4], ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor esi, esi
jmp 0x101d2905
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_window_size
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.incorrect_header_check
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
cmp esi, 0x10
jae 0x101d1a0d
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x10
jb 0x101d19e6
mov eax, dword [esp + 0x48]
mov dword [edx + 0x14], ebx
cmp bl, 8
je 0x101d1a28
mov dword [eax + 0x18], str.unknown_compression_method
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
test ebx, 0xe000
je 0x101d1a43
mov dword [eax + 0x18], str.unknown_header_flags_set
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov esi, dword [edx + 0x24]
mov ecx, ebx
shr ecx, 8
mov eax, ebx
test esi, esi
je 0x101d1a5b
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [edx + 0x14]
test eax, 0x200
je 0x101d1a89
test byte [edx + 0xc], 4
je 0x101d1a89
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], bl
push eax
mov byte [esp + 0x2d], cl
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [edx + 0x1c], eax
xor ebx, ebx
mov dword [edx + 4], 0x3f36
mov dword [esp + 0x14], ebx
xor esi, esi
jmp 0x101d1aa0
cmp esi, 0x20
jae 0x101d1ac3
nop
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x20
jb 0x101d1aa0
mov eax, dword [edx + 0x24]
test eax, eax
je 0x101d1acd
mov dword [eax + 4], ebx
test dword [edx + 0x14], 0x200
je 0x101d1b12
test byte [edx + 0xc], 4
je 0x101d1b12
mov eax, ebx
mov byte [esp + 0x24], bl
shr eax, 8
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x26], al
lea eax, [esp + 0x24]
push 4
shr ebx, 0x18
push eax
mov byte [esp + 0x2f], bl
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [edx + 0x1c], eax
xor ebx, ebx
mov dword [edx + 4], 0x3f37
mov dword [esp + 0x14], ebx
xor esi, esi
jmp 0x101d1b28
cmp esi, 0x10
jae 0x101d1b4b
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x10
jb 0x101d1b28
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x101d1b65
movzx eax, bl
mov dword [ecx + 8], eax
mov ecx, ebx
mov eax, dword [edx + 0x24]
shr ecx, 8
mov dword [eax + 0xc], ecx
jmp 0x101d1b6a
mov ecx, ebx
shr ecx, 8
test dword [edx + 0x14], 0x200
je 0x101d1b9a
test byte [edx + 0xc], 4
je 0x101d1b9a
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], bl
push eax
mov byte [esp + 0x2d], cl
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [edx + 0x1c], eax
xor ebx, ebx
mov dword [edx + 4], 0x3f38
mov dword [esp + 0x14], ebx
xor esi, esi
test dword [edx + 0x14], 0x400
je 0x101d1c26
cmp esi, 0x10
jae 0x101d1bda
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x10
jb 0x101d1bb7
mov eax, dword [edx + 0x24]
mov dword [edx + 0x44], ebx
test eax, eax
je 0x101d1be7
mov dword [eax + 0x14], ebx
test dword [edx + 0x14], 0x200
je 0x101d1c1a
test byte [edx + 0xc], 4
je 0x101d1c1a
mov byte [esp + 0x24], bl
lea eax, [esp + 0x24]
push 2
shr ebx, 8
push eax
mov byte [esp + 0x2d], bl
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [edx + 0x1c], eax
mov dword [esp + 0x14], 0
xor esi, esi
jmp 0x101d1c34
mov eax, dword [edx + 0x24]
test eax, eax
je 0x101d1c34
mov dword [eax + 0x10], 0
mov dword [edx + 4], 0x3f39
mov eax, dword [edx + 0x14]
test eax, 0x400
je 0x101d1ced
mov ecx, dword [edx + 0x44]
mov ebx, ebp
cmp ecx, ebp
cmovbe ebx, ecx
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x101d1ce5
cmp dword [edx + 0x24], 0
mov edi, dword [esp + 0x18]
je 0x101d1cb6
mov ebx, dword [edx + 0x24]
mov ebx, dword [ebx + 0x10]
test ebx, ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x38]
je 0x101d1cb6
mov eax, dword [edx + 0x24]
mov edi, dword [eax + 0x18]
mov edx, edi
mov ebx, dword [eax + 0x14]
mov eax, dword [esp + 0x38]
sub ebx, ecx
sub edx, ebx
lea ecx, [eax + ebx]
cmp ecx, edi
mov edi, dword [esp + 0x18]
cmova eax, edx
push eax
mov eax, dword [esp + 0x44]
add eax, ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ebx, dword [esp + 0x38]
mov eax, dword [edx + 0x14]
test eax, 0x200
je 0x101d1cd7
test byte [edx + 0xc], 4
je 0x101d1cd7
push ebx
push edi
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [edx + 0x1c], eax
add edi, ebx
sub ebp, ebx
sub dword [edx + 0x44], ebx
mov ecx, dword [edx + 0x44]
mov dword [esp + 0x18], edi
test ecx, ecx
jne 0x101d1d9b
mov ebx, dword [esp + 0x14]
mov dword [edx + 0x44], 0
mov dword [edx + 4], 0x3f3a
test dword [edx + 0x14], 0x800
je 0x101d1e27
test ebp, ebp
je 0x101d1d9b
xor ecx, ecx
mov al, byte [ecx + edi]
inc ecx
mov byte [esp + 0x13], al
mov eax, dword [edx + 0x24]
mov dword [esp + 0x38], ecx
test eax, eax
je 0x101d1d50
mov ebx, dword [eax + 0x1c]
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x101d1d50
mov ebx, dword [edx + 0x44]
cmp ebx, dword [eax + 0x20]
jae 0x101d1d50
mov cl, byte [esp + 0x13]
mov eax, ebx
mov ebx, dword [esp + 0x34]
mov byte [eax + ebx], cl
inc dword [edx + 0x44]
mov ecx, dword [esp + 0x38]
mov al, byte [esp + 0x13]
test al, al
je 0x101d1d5c
cmp ecx, ebp
jb 0x101d1d16
test dword [edx + 0x14], 0x200
mov ebx, dword [esp + 0x14]
je 0x101d1d8b
test byte [edx + 0xc], 4
je 0x101d1d8b
push ecx
push edi
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov dword [edx + 0x1c], eax
mov al, byte [esp + 0x13]
add edi, ecx
sub ebp, ecx
mov dword [esp + 0x18], edi
test al, al
je 0x101d1e35
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], ebp
cmp dword [ebx + 0x2c], 0
mov ebp, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], esi
jne 0x101d1df9
cmp ebp, dword [edi + 0x10]
je 0x101d2dcb
mov eax, dword [ebx + 4]
cmp eax, 0x3f51
jge 0x101d2dcb
cmp eax, 0x3f4e
jl 0x101d1df9
cmp ecx, 4
je 0x101d2dcb
mov eax, ebp
sub eax, dword [edi + 0x10]
push eax
push dword [edi + 0xc]
push edi
call fcn.101d3230
add esp, 0xc
test eax, eax
je 0x101d2dcb
mov dword [ebx + 4], 0x3f52
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x34
ret
mov eax, dword [edx + 0x24]
test eax, eax
je 0x101d1e35
mov dword [eax + 0x1c], 0
mov dword [edx + 0x44], 0
mov dword [edx + 4], 0x3f3b
test dword [edx + 0x14], 0x1000
je 0x101d1ee7
test ebp, ebp
je 0x101d1d9b
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + edi]
inc ecx
mov byte [esp + 0x13], al
mov eax, dword [edx + 0x24]
mov dword [esp + 0x38], ecx
test eax, eax
je 0x101d1e9a
mov ebx, dword [eax + 0x24]
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x101d1e9a
mov ebx, dword [edx + 0x44]
cmp ebx, dword [eax + 0x28]
jae 0x101d1e9a
mov cl, byte [esp + 0x13]
mov eax, ebx
mov ebx, dword [esp + 0x34]
mov byte [eax + ebx], cl
inc dword [edx + 0x44]
mov ecx, dword [esp + 0x38]
mov al, byte [esp + 0x13]
test al, al
je 0x101d1ea6
cmp ecx, ebp
jb 0x101d1e60
test dword [edx + 0x14], 0x200
mov ebx, dword [esp + 0x14]
je 0x101d1ed5
test byte [edx + 0xc], 4
je 0x101d1ed5
push ecx
push edi
push dword [edx + 0x1c]
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov dword [edx + 0x1c], eax
mov al, byte [esp + 0x13]
add edi, ecx
sub ebp, ecx
mov dword [esp + 0x18], edi
test al, al
jne 0x101d1d9b
jmp 0x101d1ef5
mov eax, dword [edx + 0x24]
test eax, eax
je 0x101d1ef5
mov dword [eax + 0x24], 0
mov dword [edx + 4], 0x3f3c
mov ecx, dword [edx + 0x14]
test ecx, 0x200
je 0x101d1f63
cmp esi, 0x10
jae 0x101d1f36
nop dword [eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x10
jb 0x101d1f10
mov ecx, dword [edx + 0x14]
test byte [edx + 0xc], 4
je 0x101d1f5b
movzx eax, word [edx + 0x1c]
cmp ebx, eax
je 0x101d1f5b
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.header_crc_mismatch
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], ebx
mov eax, dword [edx + 0x24]
test eax, eax
je 0x101d1f7d
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov eax, dword [edx + 0x24]
mov dword [eax + 0x30], 1
push 0
push 0
push 0
call fcn.101d35a0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword [edx + 0x1c], eax
mov dword [ecx + 0x30], eax
mov dword [edx + 4], 0x3f3f
jmp 0x101d2905
cmp esi, 0x20
jae 0x101d1fd3
nop word [eax + eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x20
jb 0x101d1fb0
mov ecx, ebx
mov eax, ebx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, ebx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add eax, ecx
shr ebx, 0x18
mov ecx, dword [esp + 0x48]
add eax, ebx
mov dword [edx + 0x1c], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [ecx + 0x30], eax
mov eax, ecx
mov dword [edx + 4], 0x3f3e
cmp dword [edx + 0x10], 0
je 0x101d2d73
push 0
push 0
push 0
call fcn.101d3320
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword [edx + 0x1c], eax
mov dword [ecx + 0x30], eax
mov dword [edx + 4], 0x3f3f
mov eax, dword [esp + 0x4c]
cmp eax, 5
je 0x101d2dc4
cmp eax, 6
je 0x101d2dc4
cmp dword [edx + 8], 0
je 0x101d2073
mov ecx, esi
mov dword [edx + 4], 0x3f4e
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x14], ebx
jmp 0x101d2905
cmp esi, 3
jae 0x101d209b
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 3
jb case.default.0x101d20aa
mov eax, ebx
shr ebx, 1
and eax, 1
mov dword [edx + 8], eax
mov eax, ebx
and eax, 3
jmp dword [eax*4 + 0x101d2f14]
shr ebx, 2
sub esi, 3
mov dword [edx + 4], 0x3f41
mov dword [esp + 0x14], ebx
jmp 0x101d2905
mov ecx, dword [esp + 0x4c]
mov dword [edx + 0x50], 0x1024c878
mov dword [edx + 0x58], 9
mov dword [edx + 0x54], 0x1024d078
mov dword [edx + 0x5c], 5
mov dword [edx + 4], 0x3f47
cmp ecx, 6
jne 0x101d212a
shr ebx, 2
sub esi, 3
mov dword [esp + 0x14], ebx
jmp 0x101d1d9f
shr ebx, 2
sub esi, 3
mov dword [edx + 4], 0x3f44
mov dword [esp + 0x14], ebx
jmp 0x101d2905
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edx + 4], 0x3f51
shr ebx, 2
sub esi, 3
mov dword [esp + 0x14], ebx
jmp 0x101d2905
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x14], ebx
cmp esi, 0x20
jae 0x101d2173
nop dword [eax + eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x20
jb 0x101d2150
mov eax, ebx
movzx ecx, bx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x101d2198
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov dword [edx + 0x44], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x14], ebx
mov dword [edx + 4], 0x3f42
cmp ecx, 6
je 0x101d1d9f
mov dword [edx + 4], 0x3f43
mov ecx, dword [edx + 0x44]
test ecx, ecx
je 0x101d1f99
cmp ecx, ebp
mov eax, ebp
cmovbe eax, ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
cmovbe ecx, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x101d1d9b
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov edx, dword [esp + 0x1c]
add edi, eax
sub dword [esp + 0x20], eax
sub ebp, eax
add dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
sub dword [edx + 0x44], eax
jmp 0x101d2905
cmp esi, 0xe
jae 0x101d2243
nop dword [eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0xe
jb 0x101d2220
mov ecx, ebx
sub esi, 0xe
shr ebx, 5
and ecx, 0x1f
mov eax, ebx
add ecx, 0x101
and eax, 0x1f
shr ebx, 5
inc eax
mov dword [edx + 0x64], ecx
mov dword [esp + 0x40], eax
mov dword [edx + 0x68], eax
mov eax, ebx
and eax, 0xf
shr ebx, 4
add eax, 4
mov dword [esp + 0x14], ebx
mov dword [edx + 0x60], eax
cmp ecx, 0x11e
ja 0x101d2379
cmp dword [esp + 0x40], 0x1e
ja 0x101d2379
mov dword [edx + 0x6c], 0
mov dword [edx + 4], 0x3f45
mov eax, dword [edx + 0x6c]
cmp eax, dword [edx + 0x60]
jae 0x101d22fd
cmp esi, 3
jae 0x101d22d3
nop dword [eax + eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 3
jb 0x101d22b0
mov eax, dword [edx + 0x6c]
mov ecx, ebx
and ecx, 7
shr ebx, 3
sub esi, 3
mov dword [esp + 0x14], ebx
movzx eax, word [eax*2 + 0x1024d0f8]
mov word [edx + eax*2 + 0x74], cx
inc dword [edx + 0x6c]
mov eax, dword [edx + 0x6c]
cmp eax, dword [edx + 0x60]
jb 0x101d22a6
cmp eax, 0x13
jae 0x101d231d
mov eax, dword [edx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x1024d0f8]
mov word [edx + eax*2 + 0x74], cx
inc dword [edx + 0x6c]
cmp dword [edx + 0x6c], 0x13
jb 0x101d2302
mov ecx, dword [esp + 0x1c]
lea eax, [edx + 0x534]
add edx, 0x70
mov dword [ecx + 0x50], eax
mov dword [edx], eax
mov eax, ecx
lea ecx, [eax + 0x58]
add eax, 0x2f4
mov dword [ecx], 7
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push 0x13
add eax, 0x74
push eax
push 0
call fcn.101d3860
mov edx, dword [esp + 0x34]
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x101d2390
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov dword [edx + 0x6c], 0
mov dword [edx + 4], 0x3f46
mov dword [esp + 0x38], 0x3f46
mov eax, dword [edx + 0x68]
mov ecx, dword [edx + 0x64]
add eax, ecx
cmp dword [edx + 0x6c], eax
jae 0x101d2603
nop word [eax + eax]
mov ecx, dword [edx + 0x58]
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x50]
dec eax
mov dword [esp + 0x40], eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
shr dword [esp + 0x34], 0x10
movzx ecx, cl
cmp ecx, esi
jbe 0x101d2433
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [edx + 0x50]
add ebx, eax
mov eax, dword [esp + 0x40]
add esi, 8
and eax, ebx
mov dword [esp + 0x14], ebx
dec ebp
mov dword [esp + 0x18], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
shr dword [esp + 0x34], 0x10
movzx ecx, cl
cmp ecx, esi
ja 0x101d23f0
mov ecx, dword [esp + 0x34]
movzx ecx, cx
mov dword [esp + 0x40], ecx
movzx ecx, cx
cmp ecx, 0x10
mov ecx, dword [esp + 0x38]
movzx ecx, cl
jae 0x101d246b
shr ebx, cl
sub esi, ecx
mov ecx, dword [edx + 0x6c]
shr eax, 0x10
mov dword [esp + 0x14], ebx
mov word [edx + ecx*2 + 0x74], ax
inc dword [edx + 0x6c]
mov ecx, dword [edx + 0x6c]
jmp 0x101d25ce
jne 0x101d24d6
add ecx, 2
mov dword [esp + 0x40], ecx
cmp esi, ecx
jae 0x101d24a0
test ebp, ebp
je 0x101d1d9b
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
inc edi
add ebx, edx
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, dword [esp + 0x40]
jb 0x101d2478
mov edx, dword [esp + 0x1c]
movzx ecx, ah
mov eax, dword [edx + 0x6c]
sub esi, ecx
shr ebx, cl
mov dword [esp + 0x14], ebx
test eax, eax
je 0x101d25ec
movzx eax, word [edx + eax*2 + 0x72]
mov ecx, ebx
and ecx, 3
shr ebx, 2
add ecx, 3
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
sub esi, 2
jmp 0x101d258d
cmp word [esp + 0x40], 0x11
jne 0x101d2533
add ecx, 3
mov dword [esp + 0x40], ecx
cmp esi, ecx
jae 0x101d2518
nop dword [eax]
test ebp, ebp
je 0x101d1d9b
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
inc edi
add ebx, edx
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, dword [esp + 0x40]
jb 0x101d24f0
mov edx, dword [esp + 0x1c]
movzx ecx, ah
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
mov dword [esp + 0x38], eax
mov eax, 0xfffffffd
jmp 0x101d2581
add ecx, 7
mov dword [esp + 0x40], ecx
cmp esi, ecx
jae 0x101d2568
nop
test ebp, ebp
je 0x101d1d9b
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
inc edi
add ebx, edx
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, dword [esp + 0x40]
jb 0x101d2540
mov edx, dword [esp + 0x1c]
movzx ecx, ah
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
mov dword [esp + 0x38], eax
mov eax, 0xfffffff9
sub eax, ecx
mov dword [esp + 0x34], 0
add esi, eax
mov ecx, dword [edx + 0x6c]
mov eax, dword [edx + 0x68]
add ecx, dword [esp + 0x38]
add eax, dword [edx + 0x64]
mov dword [esp + 0x14], ebx
cmp ecx, eax
ja 0x101d25ec
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
nop word [eax + eax]
mov eax, dword [edx + 0x6c]
mov word [edx + eax*2 + 0x74], bx
mov ecx, dword [edx + 0x6c]
lea ecx, [ecx + 1]
mov dword [edx + 0x6c], ecx
sub edi, 1
jne 0x101d25b0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x68]
add eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x101d23c0
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x64]
jmp 0x101d2607
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov eax, dword [esp + 0x38]
cmp eax, 0x3f51
je 0x101d2905
cmp word [edx + 0x274], 0
jne 0x101d2633
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
lea edi, [edx + 0x70]
mov dword [edx + 0x58], 9
lea eax, [edx + 0x534]
mov dword [esp + 0x40], edi
mov dword [edx + 0x70], eax
lea edi, [edx + 0x2f4]
mov dword [edx + 0x50], eax
lea eax, [edx + 0x58]
push edi
push eax
lea eax, [edx + 0x70]
mov dword [esp + 0x40], edi
push eax
push ecx
lea eax, [edx + 0x74]
push eax
push 1
call fcn.101d3860
mov edi, dword [esp + 0x30]
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x101d2696
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
push dword [esp + 0x38]
mov dword [ecx + 0x5c], 6
mov eax, dword [edx]
mov dword [ecx + 0x54], eax
lea eax, [ecx + 0x5c]
push eax
mov eax, dword [ecx + 0x64]
push edx
push dword [ecx + 0x68]
add ecx, 0x74
lea eax, [ecx + eax*2]
push eax
push 2
call fcn.101d3860
mov edx, dword [esp + 0x34]
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x101d26ed
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_distances_set
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], 0x3f47
cmp ecx, 6
je 0x101d1d9f
mov eax, dword [esp + 0x48]
mov dword [edx + 4], 0x3f48
cmp ebp, 6
jb 0x101d2786
cmp dword [esp + 0x20], 0x102
jb 0x101d2786
mov ecx, dword [esp + 0x28]
push dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov dword [eax], edi
mov dword [eax + 4], ebp
push eax
mov dword [edx + 0x3c], ebx
mov dword [edx + 0x40], esi
call fcn.101d3dd0
mov eax, dword [esp + 0x50]
add esp, 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
cmp dword [edx + 4], 0x3f3f
mov edi, dword [eax]
mov ebx, dword [edx + 0x3c]
mov ebp, dword [eax + 4]
mov esi, dword [edx + 0x40]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
jne 0x101d2905
mov dword [edx + 0x1bc8], 0xffffffff
jmp 0x101d2905
mov ecx, dword [edx + 0x58]
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x50]
dec eax
mov dword [esp + 0x40], eax
and eax, ebx
mov dword [esp + 0x34], ecx
mov dword [edx + 0x1bc8], 0
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x101d27ed
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [edx + 0x50]
add ebx, eax
mov eax, dword [esp + 0x40]
add esi, 8
and eax, ebx
mov dword [esp + 0x14], ebx
dec ebp
mov dword [esp + 0x18], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x101d27b7
test al, al
je 0x101d28a9
test al, 0xf0
jne 0x101d28a9
mov ecx, eax
mov edi, 1
shr ecx, 8
mov edx, eax
movzx ebx, cl
movzx ecx, al
add ecx, ebx
shr eax, 0x10
shl edi, cl
mov ecx, ebx
dec edi
mov dword [esp + 0x38], edx
and edi, dword [esp + 0x14]
shr edi, cl
mov ecx, dword [esp + 0x34]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
jbe 0x101d2894
nop word [eax + eax]
test ebp, ebp
je 0x101d1d9b
mov ebx, dword [esp + 0x18]
mov ecx, esi
mov edi, 1
add esi, 8
dec ebp
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [esp + 0x14], eax
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x18], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x14]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x101d2840
mov ebx, dword [esp + 0x14]
movzx ecx, dh
mov edx, dword [esp + 0x1c]
shr ebx, cl
sub esi, ecx
mov dword [edx + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edx + 0x1bc8], ecx
sub esi, ecx
shr ebx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x14], ebx
mov dword [edx + 0x44], ecx
test al, al
jne 0x101d28d4
mov dword [edx + 4], 0x3f4d
jmp 0x101d2901
test al, 0x20
je 0x101d28eb
mov dword [edx + 0x1bc8], 0xffffffff
mov dword [edx + 4], 0x3f3f
jmp 0x101d2901
test al, 0x40
je 0x101d2926
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov dword [edx + 4], 0x3f51
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov dword [esp + 0x38], eax
lea ecx, [eax - 0x3f34]
cmp ecx, 0x1e
ja case.default.0x101d291f
mov eax, dword [esp + 0x48]
jmp dword [ecx*4 + 0x101d2e98]
movzx eax, al
and eax, 0xf
mov dword [edx + 4], 0x3f49
mov dword [edx + 0x4c], eax
mov edi, dword [edx + 0x4c]
test edi, edi
je 0x101d2988
cmp esi, edi
jae 0x101d296b
mov edx, dword [esp + 0x18]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
inc edx
add ebx, eax
mov dword [esp + 0x18], edx
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, edi
jb 0x101d2945
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov eax, 1
shl eax, cl
sub esi, edi
dec eax
and eax, ebx
shr ebx, cl
add dword [edx + 0x44], eax
add dword [edx + 0x1bc8], edi
mov dword [esp + 0x14], ebx
mov eax, dword [edx + 0x44]
mov dword [edx + 0x1bcc], eax
mov dword [edx + 4], 0x3f4a
mov ecx, dword [edx + 0x5c]
mov eax, 1
mov edi, dword [edx + 0x54]
shl eax, cl
dec eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], eax
and eax, ebx
mov eax, dword [edi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x101d29fa
mov edx, dword [esp + 0x18]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
inc edx
add ebx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x40]
add esi, 8
and eax, ebx
mov dword [esp + 0x14], ebx
dec ebp
mov eax, dword [edi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x101d29c3
mov edx, dword [esp + 0x1c]
test al, 0xf0
jne 0x101d2aa9
mov ecx, eax
mov edi, 1
shr ecx, 8
mov edx, eax
movzx ebx, cl
movzx ecx, al
add ecx, ebx
shr eax, 0x10
shl edi, cl
mov ecx, ebx
dec edi
mov dword [esp + 0x38], edx
and edi, dword [esp + 0x14]
shr edi, cl
mov ecx, dword [esp + 0x34]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
jbe 0x101d2a94
nop
test ebp, ebp
je 0x101d1d9b
mov ebx, dword [esp + 0x18]
mov ecx, esi
mov edi, 1
add esi, 8
dec ebp
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [esp + 0x14], eax
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x18], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x14]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x101d2a40
mov ebx, dword [esp + 0x14]
movzx ecx, dh
mov edx, dword [esp + 0x1c]
sub esi, ecx
shr ebx, cl
add dword [edx + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edx + 0x1bc8], ecx
sub esi, ecx
shr ebx, cl
mov dword [esp + 0x14], ebx
test al, 0x40
je 0x101d2ad3
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x101d28fa
mov ecx, eax
mov dword [edx + 4], 0x3f4b
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [edx + 0x48], ecx
mov dword [edx + 0x4c], eax
mov edi, dword [edx + 0x4c]
test edi, edi
je 0x101d2b43
cmp esi, edi
jae 0x101d2b26
mov edx, dword [esp + 0x18]
nop word [eax + eax]
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
inc edx
add ebx, eax
mov dword [esp + 0x18], edx
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, edi
jb 0x101d2b00
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov eax, 1
shl eax, cl
sub esi, edi
dec eax
and eax, ebx
shr ebx, cl
add dword [edx + 0x48], eax
add dword [edx + 0x1bc8], edi
mov dword [esp + 0x14], ebx
mov dword [edx + 4], 0x3f4c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101d1d9b
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [edx + 0x48]
cmp eax, ecx
jbe 0x101d2bb7
sub eax, ecx
cmp eax, dword [edx + 0x30]
jbe 0x101d2b83
cmp dword [edx + 0x1bc4], 0
je 0x101d2b83
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x101d28fa
mov ecx, dword [edx + 0x34]
cmp eax, ecx
jbe 0x101d2b96
mov edi, dword [edx + 0x2c]
sub eax, ecx
sub edi, eax
add edi, dword [edx + 0x38]
jmp 0x101d2b9d
mov edi, dword [edx + 0x38]
sub edi, eax
add edi, ecx
mov ecx, dword [edx + 0x44]
cmp eax, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], ecx
cmovbe ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
jmp 0x101d2bc4
mov edi, dword [esp + 0x28]
sub edi, eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x20]
mov edx, ecx
cmp dword [esp + 0x38], edx
cmovbe ecx, dword [esp + 0x38]
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x44], eax
mov edx, dword [esp + 0x28]
sub edi, edx
mov al, byte [edi + edx]
mov byte [edx], al
inc edx
sub ecx, 1
jne 0x101d2be8
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x44], ecx
jne 0x101d2901
mov dword [edx + 4], 0x3f48
jmp 0x101d2901
cmp dword [esp + 0x20], 0
je 0x101d1d9b
mov ecx, dword [esp + 0x28]
mov al, byte [edx + 0x44]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [edx + 4], 0x3f48
jmp 0x101d2905
cmp dword [edx + 0xc], 0
je 0x101d2d1c
cmp esi, 0x20
jae 0x101d2c6f
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x20
jb 0x101d2c48
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x20]
add dword [eax + 0x14], ecx
add dword [edx + 0x20], ecx
mov eax, dword [edx + 0xc]
mov dword [esp + 0x2c], ecx
test al, 4
je 0x101d2cc1
test ecx, ecx
je 0x101d2cc1
mov eax, dword [esp + 0x28]
push dword [esp + 0x2c]
sub eax, ecx
cmp dword [edx + 0x14], 0
mov ecx, dword [edx + 0x1c]
push eax
push ecx
je 0x101d2ca8
call fcn.101d35a0
jmp 0x101d2cad
call fcn.101d3320
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword [edx + 0x1c], eax
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
test al, 4
je 0x101d2d14
cmp dword [edx + 0x14], 0
mov ecx, ebx
jne 0x101d2cf8
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
mov eax, ebx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, ebx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [edx + 0x1c]
je 0x101d2d14
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.incorrect_data_check
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], ebx
mov dword [edx + 4], 0x3f4f
cmp dword [edx + 0xc], 0
je 0x101d2da3
cmp dword [edx + 0x14], 0
je 0x101d2da3
cmp esi, 0x20
jae 0x101d2d57
test ebp, ebp
je 0x101d1d9b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add ebx, eax
mov dword [esp + 0x18], edi
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
cmp esi, 0x20
jb 0x101d2d34
cmp ebx, dword [edx + 0x20]
je 0x101d2d99
mov eax, dword [esp + 0x48]
mov dword [eax + 0x18], str.incorrect_length_check
mov dword [edx + 4], 0x3f51
jmp 0x101d2905
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 0x10], ecx
mov eax, 2
pop edi
mov dword [edx + 0x40], esi
pop esi
pop ebp
mov dword [edx + 0x3c], ebx
pop ebx
add esp, 0x34
ret
mov dword [esp + 0x14], 0
xor esi, esi
mov dword [edx + 4], 0x3f50
mov dword [esp + 0x30], 1
jmp 0x101d1d9b
mov dword [esp + 0x30], 0xfffffffd
jmp 0x101d1d9b
mov ecx, eax
jmp 0x101d1d9f
mov eax, dword [esp + 0x3c]
sub eax, dword [edi + 4]
sub ebp, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], ebp
add dword [ebx + 0x20], ebp
test byte [ebx + 0xc], 4
mov dword [esp + 0x3c], eax
je 0x101d2e12
test ebp, ebp
je 0x101d2e12
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 0x1c]
sub eax, ebp
cmp dword [ebx + 0x14], 0
push ebp
push eax
push ecx
je 0x101d2e04
call fcn.101d35a0
jmp 0x101d2e09
call fcn.101d3320
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov dword [edi + 0x30], eax
mov edx, dword [ebx + 4]
cmp edx, 0x3f47
je 0x101d2e29
cmp edx, 0x3f42
je 0x101d2e29
xor esi, esi
jmp 0x101d2e2e
mov esi, 0x100
mov ecx, dword [ebx + 8]
neg ecx
mov dword [esp + 0x48], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp edx, 0x3f3f
cmove eax, dword [esp + 0x48]
add ecx, eax
add ecx, dword [ebx + 0x40]
add ecx, esi
cmp dword [esp + 0x3c], 0
mov dword [edi + 0x2c], ecx
jne 0x101d2e62
test ebp, ebp
je 0x101d2e69
cmp dword [esp + 0x4c], 4
jne 0x101d2e7f
mov eax, dword [esp + 0x30]
mov ecx, 0xfffffffb
pop edi
pop esi
test eax, eax
pop ebp
cmove eax, ecx
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x34
ret