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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
push edi
call fcn.100049dc
pop ecx
test eax, eax
jne case.default.0x1000325f
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je case.default.0x1000325f
mov eax, dword [edi]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1000320b
cmp dword [edi + 4], eax
jne case.default.0x1000325f
mov ebp, dword [edi + 0x1c]
mov edx, 0x3f40
mov ecx, dword [ebp + 4]
cmp ecx, 0x3f3f
jne 0x10003230
mov dword [ebp + 4], edx
mov ecx, edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 4]
mov edx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x40]
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], eax
jmp 0x100038a7
jmp dword [eax*4 + 0x1000476f]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10003279
mov dword [ebp + 4], 0x3f40
jmp 0x100038a4
push 0x10
pop eax
cmp ebx, eax
jae 0x100032b6
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x10
jb 0x10003284
mov ecx, dword [ebp + 0xc]
test cl, 2
je 0x10003313
cmp edx, 0x8b1f
jne 0x10003313
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
jne 0x100032d1
mov dword [ebp + 0x28], 0xf
push ebx
push ebx
push ebx
call fcn.1001fc44
mov dword [ebp + 0x1c], eax
push 0x1f
pop eax
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 2
push eax
mov byte [esp + 0x39], 0x8b
push dword [ebp + 0x1c]
call fcn.1001fc44
mov edx, ebx
mov dword [ebp + 0x1c], eax
add esp, 0x18
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [ebp + 4], 0x3f35
jmp 0x100038a4
and dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10003325
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x100033d2
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
push 0x1f
pop ecx
div ecx
test edx, edx
mov edx, dword [esp + 0x1c]
jne 0x100033d2
mov eax, edx
and al, 0xf
cmp al, 8
je 0x1000335f
mov dword [edi + 0x18], str.unknown_compression_method
jmp 0x100033d9
mov eax, dword [ebp + 0x28]
sub ebx, 4
shr edx, 4
mov ecx, edx
mov dword [esp + 0x1c], edx
and ecx, 0xf
mov dword [esp + 0x20], ebx
add ecx, 8
test eax, eax
jne 0x10003381
mov dword [ebp + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x100033c9
cmp ecx, eax
ja 0x100033c9
xor ebx, ebx
xor eax, eax
push ebx
inc eax
shl eax, cl
push ebx
push ebx
mov dword [ebp + 0x18], eax
call fcn.1001fa02
mov edx, dword [esp + 0x28]
add esp, 0xc
shr edx, 8
not edx
mov dword [ebp + 0x1c], eax
and edx, 2
mov dword [edi + 0x30], eax
or edx, 0x3f3d
mov dword [ebp + 4], edx
mov edx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
jmp 0x100038a4
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x100033d9
mov dword [edi + 0x18], str.incorrect_header_check
mov dword [ebp + 4], 0x3f51
jmp 0x100038a4
push 0x10
pop eax
cmp ebx, eax
jae 0x1000341f
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x10
jb 0x100033f0
mov dword [ebp + 0x14], edx
cmp dl, 8
jne 0x10003356
test edx, 0xe000
je 0x1000343c
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x100033d9
mov esi, dword [ebp + 0x24]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x10003454
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
test eax, 0x200
je 0x1000347e
test byte [ebp + 0xc], 4
je 0x1000347e
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], dl
push eax
mov byte [esp + 0x2d], cl
push dword [ebp + 0x1c]
call fcn.1001fc44
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, eax
mov dword [ebp + 4], 0x3f36
mov dword [esp + 0x1c], edx
mov ebx, eax
cmp ebx, 0x20
jae 0x100034c7
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jb 0x1000349c
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100034d1
mov dword [eax + 4], edx
test dword [ebp + 0x14], 0x200
je 0x10003512
test byte [ebp + 0xc], 4
je 0x10003512
mov eax, edx
mov byte [esp + 0x24], dl
shr eax, 8
mov byte [esp + 0x25], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x26], al
lea eax, [esp + 0x24]
push 4
shr edx, 0x18
push eax
mov byte [esp + 0x2f], dl
push dword [ebp + 0x1c]
call fcn.1001fc44
add esp, 0xc
mov dword [ebp + 0x1c], eax
xor eax, eax
mov dword [ebp + 4], 0x3f37
mov edx, eax
mov ebx, eax
mov dword [esp + 0x1c], edx
push 0x10
pop eax
cmp ebx, eax
jae 0x10003559
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x1000352e
mov esi, dword [ebp + 0x24]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x10003571
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 0xc], ecx
test dword [ebp + 0x14], 0x200
je 0x1000359d
test byte [ebp + 0xc], 4
je 0x1000359d
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], dl
push eax
mov byte [esp + 0x2d], cl
push dword [ebp + 0x1c]
call fcn.1001fc44
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov edx, ecx
mov dword [ebp + 4], 0x3f38
mov ebx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
jmp 0x100035ba
xor ecx, ecx
test dword [ebp + 0x14], 0x400
je 0x10003647
push 0x10
pop eax
cmp ebx, eax
jae 0x100035fd
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x100035d2
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x44], edx
test eax, eax
je 0x1000360a
mov dword [eax + 0x14], edx
test dword [ebp + 0x14], 0x200
je 0x10003639
test byte [ebp + 0xc], 4
je 0x10003639
mov byte [esp + 0x24], dl
lea eax, [esp + 0x24]
push 2
shr edx, 8
push eax
mov byte [esp + 0x2d], dl
push dword [ebp + 0x1c]
call fcn.1001fc44
add esp, 0xc
mov dword [ebp + 0x1c], eax
xor eax, eax
mov ebx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
jmp 0x10003651
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10003651
mov dword [eax + 0x10], ecx
mov dword [ebp + 4], 0x3f39
mov eax, dword [ebp + 0x14]
test eax, 0x400
je 0x100036e8
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [esp + 0x14]
cmovbe esi, ecx
test esi, esi
je 0x100036e0
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x100036b2
cmp dword [edx + 0x10], 0
je 0x100036b2
mov eax, dword [edx + 0x14]
sub eax, ecx
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x38], eax
add eax, esi
cmp eax, ecx
mov eax, dword [esp + 0x38]
jbe 0x1000369b
sub ecx, eax
jmp 0x1000369d
mov ecx, esi
add eax, dword [edx + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, 0x200
je 0x100036d2
test byte [ebp + 0xc], 4
je 0x100036d2
push esi
push dword [esp + 0x1c]
push dword [ebp + 0x1c]
call fcn.1001fc44
add esp, 0xc
mov dword [ebp + 0x1c], eax
sub dword [esp + 0x14], esi
add dword [esp + 0x18], esi
sub dword [ebp + 0x44], esi
mov ecx, dword [ebp + 0x44]
test ecx, ecx
jne 0x10004643
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 4], 0x3f3a
jmp 0x100036fc
xor ecx, ecx
test dword [ebp + 0x14], 0x800
je 0x10003792
test esi, esi
je 0x10004643
mov edi, dword [esp + 0x14]
mov esi, ecx
mov edx, dword [esp + 0x18]
mov al, byte [esi + edx]
inc esi
mov byte [esp + 0x13], al
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10003747
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x10003743
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x20]
jae 0x10003743
mov al, byte [esp + 0x13]
mov byte [ecx + edx], al
inc dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x10003753
cmp esi, edi
jb 0x1000371b
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x44]
je 0x1000377a
test byte [ebp + 0xc], 4
je 0x1000377a
push esi
push edx
push dword [ebp + 0x1c]
call fcn.1001fc44
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], esi
sub eax, esi
mov dword [esp + 0x14], eax
test cl, cl
jne 0x10004647
jmp 0x1000379c
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1000379c
mov dword [eax + 0x1c], ecx
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 4], 0x3f3b
jmp 0x100037b0
xor ecx, ecx
test dword [ebp + 0x14], 0x1000
je 0x10003846
test esi, esi
je 0x10004643
mov edi, dword [esp + 0x14]
mov esi, ecx
mov edx, dword [esp + 0x18]
mov al, byte [esi + edx]
inc esi
mov byte [esp + 0x13], al
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100037fb
mov edx, dword [eax + 0x24]
test edx, edx
je 0x100037f7
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x28]
jae 0x100037f7
mov al, byte [esp + 0x13]
mov byte [ecx + edx], al
inc dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x10003807
cmp esi, edi
jb 0x100037cf
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x44]
je 0x1000382e
test byte [ebp + 0xc], 4
je 0x1000382e
push esi
push edx
push dword [ebp + 0x1c]
call fcn.1001fc44
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], esi
sub eax, esi
mov dword [esp + 0x14], eax
test cl, cl
jne 0x10004647
jmp 0x10003850
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10003850
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], 0x3f3c
mov esi, dword [ebp + 0x14]
test esi, 0x200
jne 0x100038ee
xor ecx, ecx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10003884
xor edx, edx
sar esi, 9
inc edx
and esi, edx
mov dword [eax + 0x2c], esi
mov eax, dword [ebp + 0x24]
mov dword [eax + 0x30], edx
push ecx
push ecx
push ecx
call fcn.1001fc44
mov dword [ebp + 0x1c], eax
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [ebp + 4], 0x3f3f
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
lea eax, [ecx - 0x3f34]
cmp eax, 0x1e
jbe switch.0x1000325f
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
push 0x10
pop eax
cmp ebx, eax
jb 0x100038c1
test byte [ebp + 0xc], 4
je 0x10003913
movzx eax, word [ebp + 0x1c]
cmp edx, eax
je 0x10003913
mov dword [edi + 0x18], str.header_crc_mismatch
mov dword [ebp + 4], 0x3f51
jmp 0x100038a0
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
jmp 0x1000386c
cmp ebx, 0x20
jae 0x10003958
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jb 0x1000392d
mov ecx, edx
mov ebx, 0xff00
mov eax, edx
and ecx, ebx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, ebx
shl ecx, 8
shr edx, 0x18
add eax, ecx
add eax, edx
mov dword [ebp + 0x1c], eax
mov dword [edi + 0x30], eax
xor eax, eax
mov edx, eax
mov dword [ebp + 4], 0x3f3e
mov dword [esp + 0x1c], edx
mov ebx, eax
jmp 0x10003994
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x10004606
push eax
push eax
push eax
call fcn.1001fa02
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov dword [edi + 0x30], eax
mov dword [ebp + 4], 0x3f3f
cmp dword [esp + 0x48], 5
je 0x10004643
cmp dword [esp + 0x48], 6
je 0x10004643
cmp dword [ebp + 8], 0
je 0x100039f2
mov ecx, ebx
mov dword [ebp + 4], 0x3f4e
and ecx, 7
shr edx, cl
sub ebx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
jmp 0x100038a4
cmp ebx, 3
jae 0x10003a26
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 3
jb 0x100039fb
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebp + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x10003a9b
sub eax, 1
je 0x10003a62
sub eax, 1
je 0x10003a59
sub eax, 1
jne 0x10003aa2
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebp + 4], 0x3f51
jmp 0x10003aa2
mov dword [ebp + 4], 0x3f44
jmp 0x10003aa2
cmp dword [esp + 0x48], 6
mov dword [ebp + 0x50], 0x10022c98
mov dword [ebp + 0x58], 9
mov dword [ebp + 0x54], 0x10023498
mov dword [ebp + 0x5c], 5
mov dword [ebp + 4], 0x3f47
jne 0x10003aa2
shr edx, 2
sub ebx, 3
mov dword [esp + 0x1c], edx
jmp 0x10004643
mov dword [ebp + 4], 0x3f41
shr edx, 2
sub ebx, 3
jmp 0x100033bc
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
cmp ebx, 0x20
jae 0x10003af6
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x20
jb 0x10003ac7
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x10003b10
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x100033d9
xor eax, eax
mov dword [ebp + 0x44], ecx
cmp dword [esp + 0x48], 6
mov edx, eax
mov ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [ebp + 4], 0x3f42
je 0x10004643
mov dword [ebp + 4], 0x3f43
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x10003b83
cmp ecx, esi
mov eax, esi
mov esi, dword [esp + 0x28]
cmovbe eax, ecx
cmp eax, esi
cmovbe esi, eax
test esi, esi
je 0x10004643
mov ecx, dword [esp + 0x2c]
push esi
push dword [esp + 0x1c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
sub dword [esp + 0x20], esi
add esp, 0xc
add dword [esp + 0x18], esi
sub dword [esp + 0x28], esi
add dword [esp + 0x2c], esi
sub dword [ebp + 0x44], esi
jmp 0x1000389c
mov dword [ebp + 4], 0x3f3f
jmp 0x100038a4
cmp ebx, 0xe
jae 0x10003bc3
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0xe
jb 0x10003b98
mov ecx, edx
sub ebx, 0xe
push 0x1f
shr edx, 5
pop esi
and ecx, esi
mov dword [esp + 0x20], ebx
and esi, edx
add ecx, 0x101
shr edx, 5
inc esi
mov eax, edx
mov dword [ebp + 0x64], ecx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x60], eax
mov dword [esp + 0x1c], edx
cmp ecx, 0x11e
ja 0x10003c16
cmp esi, 0x1e
ja 0x10003c16
and dword [ebp + 0x6c], 0
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f45
jmp case.0x1000325f.16197
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x1000390a
cmp ebx, 3
jae 0x10003c56
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 3
jb 0x10003c2b
mov eax, dword [ebp + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [esp + 0x1c], edx
movzx eax, word [eax*2 + 0x10023518]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
sub ebx, 3
mov dword [esp + 0x20], ebx
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x60]
jb 0x10003c22
cmp eax, 0x13
jae 0x10003ca4
mov eax, dword [ebp + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x10023518]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 0x13
jb 0x10003c89
lea eax, [ebp + 0x534]
lea edx, [ebp + 0x70]
mov dword [ebp + 0x50], eax
mov dword [edx], eax
lea ecx, [ebp + 0x58]
lea eax, [ebp + 0x2f4]
mov dword [ecx], 7
push eax
push ecx
push edx
push 0x13
lea eax, [ebp + 0x74]
push eax
push 0
call fcn.10004b06
mov edx, dword [esp + 0x34]
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x10003cec
mov dword [edi + 0x18], str.invalid_code_lengths_set
jmp 0x100033d9
and dword [ebp + 0x6c], 0
mov eax, 0x3f46
mov dword [ebp + 4], eax
mov ecx, eax
mov eax, dword [ebp + 0x68]
add eax, dword [ebp + 0x64]
cmp dword [ebp + 0x6c], eax
jae 0x10003f11
mov ecx, dword [ebp + 0x58]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
jmp 0x10003d3e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x1c], edx
add ebx, 8
mov ecx, dword [ebp + 0x50]
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x38], eax
cmp ecx, ebx
ja 0x10003d15
mov esi, eax
push 0x10
shr esi, 0x10
pop ecx
cmp si, cx
jae 0x10003d8b
shr eax, 8
movzx ecx, al
mov eax, dword [ebp + 0x6c]
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov word [ebp + eax*2 + 0x74], si
inc dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x6c]
jmp 0x10003ee3
jne 0x10003e01
mov ecx, eax
shr ecx, 8
movzx esi, cl
add esi, 2
cmp ebx, esi
jae 0x10003dcb
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10004643
dec ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx]
mov ecx, ebx
shl edx, cl
add ebx, 8
add dword [esp + 0x1c], edx
inc dword [esp + 0x18]
cmp ebx, esi
jb 0x10003d9c
mov edx, dword [esp + 0x1c]
movzx ecx, ah
mov eax, dword [ebp + 0x6c]
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
test eax, eax
je 0x10003ef6
movzx eax, word [ebp + eax*2 + 0x72]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
mov dword [esp + 0x38], eax
sub ebx, 2
jmp 0x10003eae
cmp word [esp + 0x3a], 0x11
movzx ecx, ah
jne 0x10003e59
lea esi, [ecx + 3]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x10003e48
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
add ebx, 8
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x1c], edx
cmp ebx, esi
jb 0x10003e17
mov ecx, dword [esp + 0x38]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x10003ea4
lea esi, [ecx + 7]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x10003e95
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
add ebx, 8
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x1c], edx
cmp ebx, esi
jb 0x10003e64
mov ecx, dword [esp + 0x38]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
pop eax
sub eax, ecx
add ebx, eax
and dword [esp + 0x38], 0
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
add ecx, esi
add eax, dword [ebp + 0x64]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
cmp ecx, eax
ja 0x10003f02
mov edi, dword [esp + 0x38]
mov eax, dword [ebp + 0x6c]
mov word [ebp + eax*2 + 0x74], di
mov ecx, dword [ebp + 0x6c]
lea ecx, [ecx + 1]
mov dword [ebp + 0x6c], ecx
sub esi, 1
jne 0x10003ec9
mov edi, dword [esp + 0x44]
mov eax, dword [ebp + 0x68]
add eax, dword [ebp + 0x64]
cmp ecx, eax
jb 0x10003d09
mov ecx, dword [ebp + 4]
jmp 0x10003f11
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x1000390a
mov ecx, 0x3f51
mov dword [edi + 0x18], str.invalid_bit_length_repeat
mov dword [ebp + 4], ecx
mov esi, 0x3f51
cmp ecx, esi
je 0x100038a0
xor eax, eax
cmp word [ebp + 0x274], ax
jne 0x10003f38
mov dword [edi + 0x18], str.invalid_code____missing_end_of_block
mov dword [ebp + 4], esi
jmp 0x100038a0
lea eax, [ebp + 0x534]
lea esi, [ebp + 0x70]
mov dword [ebp + 0x50], eax
mov dword [esi], eax
lea ecx, [ebp + 0x2f4]
push ecx
lea eax, [ebp + 0x58]
push eax
push esi
push dword [ebp + 0x64]
mov dword [eax], 9
lea eax, [ebp + 0x74]
push eax
push 1
call fcn.10004b06
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x10003f84
mov dword [edi + 0x18], str.invalid_literal_lengths_set
mov dword [ebp + 4], 0x3f51
jmp 0x1000389c
mov eax, dword [esi]
lea ecx, [ebp + 0x2f4]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x5c]
push ecx
push eax
mov dword [eax], 6
mov eax, dword [ebp + 0x64]
push esi
push dword [ebp + 0x68]
lea eax, [eax*2 + 0x74]
add eax, ebp
push eax
push 2
call fcn.10004b06
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x10003fc6
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x10003f78
cmp dword [esp + 0x48], 6
mov dword [ebp + 4], 0x3f47
je 0x10004643
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f48
cmp esi, 6
jb 0x1000405e
mov eax, dword [esp + 0x28]
cmp eax, 0x102
jb 0x1000405e
push dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], ecx
mov dword [edi], eax
mov dword [edi + 4], esi
push edi
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x40], ebx
call fcn.10002db2
cmp dword [ebp + 4], 0x3f3f
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 4]
mov edx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x10]
pop ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
jne 0x100038a4
or dword [ebp + 0x1bc8], 0xffffffff
jmp 0x100038a4
and dword [ebp + 0x1bc8], 0
xor eax, eax
mov ecx, dword [ebp + 0x58]
lea esi, [eax + 1]
shl esi, cl
jmp 0x1000409e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov ecx, dword [ebp + 0x50]
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x10004071
test al, al
je 0x10004174
test al, 0xf0
jne 0x10004174
mov ebx, eax
movzx ecx, al
shr ebx, 8
xor edi, edi
movzx esi, bl
inc edi
add ecx, esi
mov edx, eax
shl edi, cl
mov ecx, esi
dec edi
shr eax, 0x10
and edi, dword [esp + 0x1c]
shr edi, cl
mov ecx, dword [ebp + 0x50]
add edi, eax
mov dword [esp + 0x38], edx
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [esp + 0x20]
add esi, ecx
cmp esi, ebx
jbe 0x1000415f
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10004643
dec esi
movzx edi, dh
mov dword [esp + 0x14], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
add ebx, 8
movzx eax, byte [esi]
shl eax, cl
add dword [esp + 0x1c], eax
inc esi
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x18], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [esp + 0x1c]
shr esi, cl
add esi, eax
mov eax, dword [ebp + 0x50]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x10004106
mov edi, dword [esp + 0x44]
movzx ecx, dh
mov edx, dword [esp + 0x1c]
shr edx, cl
sub ebx, ecx
mov dword [ebp + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc8], ecx
sub ebx, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [ebp + 0x44], ecx
test al, al
jne 0x100041a6
mov dword [ebp + 4], 0x3f4d
jmp 0x100038a0
test al, 0x20
je 0x100041bd
or dword [ebp + 0x1bc8], 0xffffffff
mov dword [ebp + 4], 0x3f3f
jmp 0x100038a0
test al, 0x40
je 0x100041cd
mov dword [edi + 0x18], str.invalid_literal_length_code
jmp 0x1000390a
movzx eax, al
and eax, 0xf
mov dword [ebp + 4], 0x3f49
mov dword [ebp + 0x4c], eax
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x10004235
cmp ebx, esi
jae 0x10004216
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
add ebx, 8
movzx eax, byte [edi]
shl eax, cl
add edx, eax
inc edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
cmp ebx, esi
jb 0x100041ec
xor eax, eax
mov ecx, esi
inc eax
sub ebx, esi
shl eax, cl
dec eax
mov dword [esp + 0x20], ebx
and eax, edx
shr edx, cl
add dword [ebp + 0x44], eax
add dword [ebp + 0x1bc8], esi
mov dword [esp + 0x1c], edx
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x1bcc], eax
mov dword [ebp + 4], 0x3f4a
mov ecx, dword [ebp + 0x5c]
xor eax, eax
mov edi, dword [ebp + 0x54]
lea esi, [eax + 1]
shl esi, cl
jmp 0x10004281
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
lea eax, [esi - 1]
and eax, edx
mov eax, dword [edi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x10004254
test al, 0xf0
jne 0x10004348
mov ebx, eax
movzx ecx, al
shr ebx, 8
xor edi, edi
movzx esi, bl
inc edi
add ecx, esi
mov edx, eax
shl edi, cl
mov ecx, esi
dec edi
shr eax, 0x10
and edi, dword [esp + 0x1c]
shr edi, cl
mov ecx, dword [ebp + 0x54]
add edi, eax
mov dword [esp + 0x38], edx
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [esp + 0x20]
add esi, ecx
cmp esi, ebx
jbe 0x10004337
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10004643
dec esi
movzx edi, dh
mov dword [esp + 0x14], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
add ebx, 8
movzx eax, byte [esi]
shl eax, cl
add dword [esp + 0x1c], eax
inc esi
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x18], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [esp + 0x1c]
shr esi, cl
add esi, eax
mov eax, dword [ebp + 0x54]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x100042de
movzx ecx, dh
mov edx, dword [esp + 0x1c]
sub ebx, ecx
shr edx, cl
add dword [ebp + 0x1bc8], ecx
mov edi, dword [esp + 0x44]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc8], ecx
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
test al, 0x40
je 0x10004376
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x1000390a
mov ecx, eax
mov dword [ebp + 4], 0x3f4b
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], eax
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x100043e3
jmp 0x100043c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004647
dec eax
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x1c], edx
add ebx, 8
cmp ebx, esi
jb 0x10004397
xor eax, eax
mov ecx, esi
inc eax
sub ebx, esi
shl eax, cl
dec eax
mov dword [esp + 0x20], ebx
and eax, edx
shr edx, cl
add dword [ebp + 0x48], eax
add dword [ebp + 0x1bc8], esi
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f4c
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10004643
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [ebp + 0x48]
cmp eax, ecx
jbe 0x1000444d
sub eax, ecx
cmp eax, dword [ebp + 0x30]
jbe 0x10004423
cmp dword [ebp + 0x1bc4], 0
je 0x10004423
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x100033d9
cmp eax, dword [ebp + 0x34]
jbe 0x10004435
sub eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x2c]
sub ecx, eax
add ecx, dword [ebp + 0x38]
jmp 0x1000443d
mov ecx, dword [ebp + 0x38]
sub ecx, eax
add ecx, dword [ebp + 0x34]
mov esi, dword [ebp + 0x44]
cmp eax, esi
mov edi, esi
cmovbe edi, eax
mov dword [esp + 0x38], edi
jmp 0x1000445a
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x44]
sub ecx, eax
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x28]
mov eax, edi
cmp dword [esp + 0x38], edi
cmovbe eax, dword [esp + 0x38]
sub edi, eax
mov dword [esp + 0x38], eax
sub esi, eax
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
sub ecx, edi
mov dword [ebp + 0x44], esi
mov esi, eax
mov al, byte [ecx + edi]
mov byte [edi], al
inc edi
sub esi, 1
jne 0x10004480
cmp dword [ebp + 0x44], 0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
jne 0x100038a4
mov dword [ebp + 4], 0x3f48
jmp 0x100038a4
cmp dword [esp + 0x28], 0
je 0x10004643
mov ecx, dword [esp + 0x2c]
mov al, byte [ebp + 0x44]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
jmp 0x100044a1
cmp dword [ebp + 0xc], 0
je 0x100045ac
cmp ebx, 0x20
jae 0x1000450e
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x20
jb 0x100044df
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x28]
add dword [edi + 0x14], ecx
add dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0xc]
test al, 4
je 0x10004554
test ecx, ecx
je 0x10004554
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp dword [ebp + 0x14], 0
push ecx
push eax
push dword [ebp + 0x1c]
je 0x1000453f
call fcn.1001fc44
jmp 0x10004544
call fcn.1001fa02
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
test al, 4
je 0x1000459e
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
xor eax, eax
cmp dword [ebp + 0x14], eax
cmovne ecx, edx
cmp ecx, dword [ebp + 0x1c]
je 0x100045a0
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x100033d9
xor eax, eax
mov edx, eax
mov ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [ebp + 4], 0x3f4f
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x10004630
cmp dword [ebp + 0x14], eax
je 0x10004630
cmp ebx, 0x20
jae 0x100045f5
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10004643
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
dec esi
add edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
add ebx, 8
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
cmp ebx, 0x20
jb 0x100045c8
xor eax, eax
cmp edx, dword [ebp + 0x20]
je 0x1000462a
mov dword [edi + 0x18], str.incorrect_length_check
jmp 0x100033d9
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x40], ebx
push 2
jmp 0x100038b8
mov dword [esp + 0x1c], eax
mov ebx, eax
mov dword [ebp + 4], 0x3f50
xor eax, eax
inc eax
jmp 0x1000463f
push 0xfffffffffffffffd
pop eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [ebp + 0x40], ebx
xor ebx, ebx
mov dword [ebp + 0x3c], eax
cmp dword [ebp + 0x2c], ebx
jne 0x10004695
cmp edi, dword [esi + 0x10]
je 0x100046b9
cmp dword [ebp + 4], 0x3f51
jge 0x100046b9
cmp dword [ebp + 4], 0x3f4e
jl 0x10004695
cmp dword [esp + 0x48], 4
je 0x100046b9
mov eax, edi
sub eax, dword [esi + 0x10]
push eax
push dword [esi + 0xc]
push esi
call fcn.10004a3e
add esp, 0xc
test eax, eax
je 0x100046b9
mov dword [ebp + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x100038b8
mov edx, dword [esp + 0x3c]
sub edx, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], edx
add dword [esi + 0x14], edi
add dword [ebp + 0x20], edi
test byte [ebp + 0xc], 4
mov dword [esp + 0x3c], edx
je 0x10004702
test edi, edi
je 0x10004702
mov eax, dword [esi + 0xc]
sub eax, edi
push edi
push eax
push dword [ebp + 0x1c]
cmp dword [ebp + 0x14], ebx
je 0x100046f0
call fcn.1001fc44
jmp 0x100046f5
call fcn.1001fa02
mov edx, dword [esp + 0x48]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebp + 4], 0x3f47
je 0x10004714
cmp dword [ebp + 4], 0x3f42
jne 0x10004719
mov ebx, 0x100
mov ecx, dword [ebp + 8]
neg ecx
mov dword [esp + 0x3c], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebp + 4], 0x3f3f
cmove eax, dword [esp + 0x3c]
add ecx, eax
add ecx, dword [ebp + 0x40]
add ecx, ebx
mov dword [esi + 0x2c], ecx
test edx, edx
jne 0x1000474b
test edi, edi
je 0x10004752
cmp dword [esp + 0x48], 4
jne 0x10004763
mov eax, dword [esp + 0x30]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x100038b9
mov eax, dword [esp + 0x30]
jmp 0x100038b9