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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, ecx
mov dword [ebp - 0x14], eax
push edi
test eax, eax
je 0x1004164f
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1004164f
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x20], edx
test edx, edx
je 0x1004164f
mov edi, dword [eax]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x10040242
cmp dword [eax + 4], edi
jne 0x1004164f
cmp dword [ecx], 0xb
jne 0x1004024d
mov dword [ecx], 0xc
mov edx, dword [eax + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x40], ebx
push esi
mov esi, dword [ecx + 0x34]
cmp eax, 0x1c
ja case.default.0x10040290
lea edi, [ecx + 0x4c]
mov dword [ebp - 0x30], edi
lea edi, [ecx + 0x50]
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x10]
nop dword [eax]
jmp dword [eax*4 + 0x1004165c]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x100402ac
mov dword [ecx], 0xc
jmp 0x1004151a
cmp esi, 0x10
jae 0x100402db
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x100402b1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
test al, 2
je 0x10040325
cmp edx, 0x8b1f
jne 0x10040325
push 0
xor edx, edx
xor ecx, ecx
call fcn.100421d0
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x1c]
push 2
mov word [ebp - 0x1c], 0x8b1f
mov dword [ecx + 0x14], eax
mov ecx, eax
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
xor edx, edx
add esp, 8
mov dword [ebp - 4], edx
xor esi, esi
mov dword [ecx + 0x14], eax
mov dword [ecx], 1
jmp 0x1004151a
mov dword [ecx + 0x10], 0
test al, 1
je 0x100403d2
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
mov ecx, 0x1f
div ecx
mov ecx, dword [ebp - 0xc]
test edx, edx
mov edx, dword [ebp - 4]
jne 0x100403d2
mov eax, edx
and al, 0xf
cmp al, 8
je 0x10040371
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x1004151a
shr edx, 4
sub esi, 4
mov eax, edx
mov dword [ebp - 4], edx
and eax, 0xf
add eax, 8
cmp eax, dword [ecx + 0x1c]
jbe 0x1004039c
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x1004151a
push 0
xor edx, edx
xor ecx, ecx
call fcn.10041760
mov edx, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 4]
shr edx, 8
not edx
mov dword [ecx + 0x14], eax
and edx, 2
or edx, 9
mov dword [ecx], edx
xor edx, edx
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x1004151a
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x1004151a
cmp esi, 0x10
jae 0x10040417
nop dword [eax]
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x100403f0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], edx
cmp dl, 8
jne 0x1004035c
test edx, 0xe000
je 0x10040440
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x1004151a
test edx, 0x200
je 0x10040467
mov ecx, dword [ecx + 0x14]
mov byte [ebp - 0x1c], dl
shr edx, 8
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x1c]
push 2
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [ecx], 2
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x10040480
cmp esi, 0x20
jae 0x100404a7
nop dword [eax + eax]
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x10040480
mov ecx, dword [ebp - 0xc]
test dword [ecx + 0x10], 0x200
je 0x100404df
mov ecx, dword [ecx + 0x14]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
mov byte [ebp - 0x1c], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ebp - 0x19], dl
lea edx, [ebp - 0x1c]
push 4
mov byte [ebp - 0x1a], al
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [ecx], 3
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x100404f3
cmp esi, 0x10
jae 0x1004051a
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x100404f3
mov ecx, dword [ebp - 0xc]
test dword [ecx + 0x10], 0x200
je 0x10040542
mov ecx, dword [ecx + 0x14]
mov byte [ebp - 0x1c], dl
shr edx, 8
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x1c]
push 2
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [ecx], 4
mov dword [ebp - 4], edx
xor esi, esi
test dword [ecx + 0x10], 0x400
je 0x100405bb
cmp esi, 0x10
jae 0x10040587
nop dword [eax]
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x10040560
mov ecx, dword [ebp - 0xc]
test dword [ecx + 0x10], 0x200
mov dword [ecx + 0x38], edx
je 0x100405b2
mov ecx, dword [ecx + 0x14]
mov byte [ebp - 0x1c], dl
shr edx, 8
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x1c]
push 2
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [ecx + 0x14], eax
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ecx], 5
test dword [ecx + 0x10], 0x400
je 0x10040635
mov edx, dword [ecx + 0x38]
cmp edx, ebx
mov eax, edx
mov dword [ebp - 0x28], edx
cmova eax, ebx
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1004062b
test dword [ecx + 0x10], 0x200
je 0x1004061c
mov edi, dword [ecx + 0x14]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x100405f9
mov dword [ebp - 0x38], edi
jmp 0x10040613
mov ecx, dword [ebp - 0x38]
mov edx, edi
push eax
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov dword [ecx + 0x14], ebx
mov ebx, dword [ebp - 8]
sub ebx, eax
add edi, eax
sub edx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
mov dword [ecx + 0x38], edx
cmp dword [ecx + 0x38], 0
jne 0x10041579
mov dword [ecx], 6
test dword [ecx + 0x10], 0x800
je 0x100406b7
test ebx, ebx
je 0x10041579
xor eax, eax
nop
movzx edx, byte [eax + edi]
inc eax
mov dword [ebp - 0x28], edx
test edx, edx
je 0x10040660
cmp eax, ebx
jb 0x10040650
test dword [ecx + 0x10], 0x2000
mov dword [ebp - 0x38], eax
je 0x100406a5
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
test edi, edi
jne 0x10040682
mov dword [ebp - 0x34], 0
jmp 0x1004069c
mov ecx, dword [ebp - 0x34]
mov edx, edi
push eax
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ecx + 0x14], ebx
mov ebx, dword [ebp - 8]
sub ebx, eax
add edi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
test edx, edx
jne 0x10041579
mov dword [ecx], 7
test dword [ecx + 0x10], 0x1000
je 0x10040737
test ebx, ebx
je 0x10041579
xor eax, eax
movzx edx, byte [eax + edi]
inc eax
mov dword [ebp - 0x28], edx
test edx, edx
je 0x100406e0
cmp eax, ebx
jb 0x100406d0
test dword [ecx + 0x10], 0x2000
mov dword [ebp - 0x38], eax
je 0x10040725
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
test edi, edi
jne 0x10040702
mov dword [ebp - 0x34], 0
jmp 0x1004071c
mov ecx, dword [ebp - 0x34]
mov edx, edi
push eax
call fcn.100421f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ecx + 0x14], ebx
mov ebx, dword [ebp - 8]
sub ebx, eax
add edi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
test edx, edx
jne 0x10041579
mov edx, dword [ebp - 4]
mov dword [ecx], 8
test dword [ecx + 0x10], 0x200
je 0x1004079d
cmp esi, 0x10
jae 0x10040777
nop
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x10040750
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0x14]
cmp edx, eax
je 0x10040794
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x1004151a
mov dword [ebp - 4], 0
xor esi, esi
push 0
xor edx, edx
xor ecx, ecx
call fcn.100421d0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
mov dword [ecx], 0xb
jmp 0x10041517
cmp esi, 0x20
jae 0x100407eb
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x100407c7
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
shr edx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
xor edx, edx
mov dword [ebp - 4], edx
xor esi, esi
mov dword [ecx], 0xa
cmp dword [ecx + 0xc], 0
je 0x10041531
push 0
xor edx, edx
xor ecx, ecx
call fcn.10041760
mov edx, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov dword [ecx], 0xb
cmp dword [ecx + 4], 0
je 0x10040874
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov dword [ecx], 0x18
jmp 0x1004151a
cmp esi, 3
jae 0x100408a7
nop dword [eax]
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 3
jb case.default.0x100408b6
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ecx + 4], eax
mov eax, edx
and eax, 3
jmp dword [eax*4 + 0x100416d0]
shr edx, 2
sub esi, 3
mov dword [ecx], 0xd
mov dword [ebp - 4], edx
jmp 0x1004151a
shr edx, 2
sub esi, 3
mov dword [ecx + 0x44], 0x10098e38
mov dword [ecx + 0x4c], 9
mov dword [ecx + 0x48], 0x10099638
mov dword [ecx + 0x50], 5
mov dword [ecx], 0x12
mov dword [ebp - 4], edx
jmp 0x1004151a
shr edx, 2
sub esi, 3
mov dword [ecx], 0xf
mov dword [ebp - 4], edx
jmp 0x1004151a
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_block_type
shr edx, 2
sub esi, 3
mov dword [ebp - 4], edx
jmp 0x1004151a
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
cmp esi, 0x20
jae 0x10040968
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x10040944
mov eax, edx
movzx ecx, dx
not eax
mov dword [ebp - 0x38], ecx
shr eax, 0x10
cmp ecx, eax
mov ecx, dword [ebp - 0xc]
je 0x10040991
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x1004151a
mov eax, dword [ebp - 0x38]
xor edx, edx
mov dword [ecx + 0x38], eax
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ecx], 0xe
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x10041077
cmp eax, ebx
cmova eax, ebx
cmp eax, dword [ebp - 0x18]
cmova eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10041579
push eax
push edi
push dword [ebp - 0x20]
call fcn.1005d430
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
sub ebx, eax
sub dword [ebp - 0x18], eax
add edi, eax
add dword [ebp - 0x20], eax
mov dword [ebp - 8], ebx
sub dword [ecx + 0x38], eax
mov dword [ebp - 0x10], edi
jmp 0x10041517
cmp esi, 0xe
jae 0x10040a1d
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0xe
jb 0x100409f6
mov ecx, dword [ebp - 0xc]
mov eax, edx
sub esi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [ecx + 0x58], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ecx + 0x5c], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 4], edx
cmp dword [ecx + 0x58], 0x11e
mov dword [ecx + 0x54], eax
ja 0x10040b50
cmp dword [ecx + 0x5c], 0x1e
ja 0x10040b50
mov dword [ecx + 0x60], 0
mov dword [ecx], 0x10
mov eax, dword [ecx + 0x60]
cmp eax, dword [ecx + 0x54]
jae 0x10040add
nop dword [eax]
cmp esi, 3
jae 0x10040aa9
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 3
jb 0x10040a85
mov eax, dword [ebp - 0xc]
mov ecx, edx
mov edi, dword [ebp - 0xc]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x60]
movzx eax, word [eax*2 + 0x100996c0]
mov word [edi + eax*2 + 0x68], cx
mov ecx, edi
mov edi, dword [ebp - 0x10]
inc dword [ecx + 0x60]
mov eax, dword [ecx + 0x60]
cmp eax, dword [ecx + 0x54]
jb 0x10040a80
cmp dword [ecx + 0x60], 0x13
jae 0x10040afe
mov eax, dword [ecx + 0x60]
xor edx, edx
movzx eax, word [eax*2 + 0x100996c0]
mov word [ecx + eax*2 + 0x68], dx
inc dword [ecx + 0x60]
cmp dword [ecx + 0x60], 0x13
jb 0x10040ae3
mov edx, dword [ebp - 0xc]
lea eax, [ecx + 0x528]
add ecx, 0x64
mov dword [edx + 0x44], eax
mov dword [ecx], eax
lea eax, [edx + 0x2e8]
push eax
lea eax, [edx + 0x4c]
mov dword [edx + 0x4c], 7
push eax
push ecx
push 0x13
add edx, 0x68
xor ecx, ecx
call fcn.10041890
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10040b65
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov dword [ecx], 0x1b
jmp 0x10041517
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x1004151a
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x60], 0
mov dword [edx], 0x11
jmp 0x10040b7a
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x5c]
add eax, dword [edx + 0x58]
cmp dword [edx + 0x60], eax
jae 0x10040dd4
nop dword [eax]
mov eax, dword [ebp - 0x30]
mov edx, 1
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, esi
jbe 0x10040bfd
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
mov edx, 1
add dword [ebp - 4], eax
dec ebx
mov eax, dword [ebp - 0x30]
inc edi
add esi, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, esi
ja 0x10040bb8
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x10040c57
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x38], ecx
cmp esi, ecx
jae 0x10040c38
test ebx, ebx
je 0x10041579
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 4], edx
inc edi
add esi, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x38]
jb 0x10040c16
mov edx, dword [ebp - 0xc]
movzx ecx, ah
shr dword [ebp - 4], cl
sub esi, ecx
mov ax, word [ebp - 0x32]
mov ecx, dword [edx + 0x60]
mov word [edx + ecx*2 + 0x68], ax
inc dword [edx + 0x60]
jmp 0x10040dc3
mov cx, word [ebp - 0x32]
mov edx, dword [ebp - 4]
cmp cx, 0x10
jne 0x10040ccd
movzx ecx, ah
mov dword [ebp - 0x38], ecx
lea eax, [ecx + 2]
cmp esi, eax
jae 0x10040c9a
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x38]
add edx, eax
inc edi
mov dword [ebp - 8], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
lea eax, [ecx + 2]
cmp esi, eax
jb 0x10040c71
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x10040e33
movzx eax, word [ecx + eax*2 + 0x66]
mov dword [ebp - 0x34], eax
mov eax, edx
and eax, 3
shr edx, 2
add eax, 3
sub esi, 2
mov dword [ebp - 0x28], eax
jmp 0x10040d7f
cmp cx, 0x11
movzx ecx, ah
jne 0x10040d20
lea eax, [ecx + 3]
mov dword [ebp - 0x38], ecx
cmp esi, eax
jae 0x10040d09
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x38]
add edx, eax
inc edi
mov dword [ebp - 8], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
lea eax, [ecx + 3]
cmp esi, eax
jb 0x10040ce0
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
mov dword [ebp - 0x28], eax
mov eax, 0xfffffffd
jmp 0x10040d6e
lea eax, [ecx + 7]
mov dword [ebp - 0x38], ecx
cmp esi, eax
jae 0x10040d59
nop word [eax + eax]
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x38]
add edx, eax
inc edi
mov dword [ebp - 8], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
lea eax, [ecx + 7]
cmp esi, eax
jb 0x10040d30
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
mov dword [ebp - 0x28], eax
mov eax, 0xfffffff9
sub eax, ecx
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0xc]
add esi, eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x60]
mov edi, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x5c]
add eax, dword [edi + 0x58]
mov edi, dword [ebp - 0x10]
cmp ecx, eax
ja 0x10040e48
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x34]
nop word [eax + eax]
mov eax, dword [edx + 0x60]
mov word [edx + eax*2 + 0x68], bx
inc dword [edx + 0x60]
sub ecx, 1
jne 0x10040db0
mov ebx, dword [ebp - 8]
mov eax, dword [edx + 0x5c]
add eax, dword [edx + 0x58]
mov ecx, dword [edx + 0x60]
cmp ecx, eax
jb 0x10040b90
cmp dword [edx], 0x1b
je 0x10041514
lea ecx, [edx + 0x64]
mov dword [edx + 0x4c], 9
lea eax, [edx + 0x528]
mov dword [ebp - 0x38], ecx
mov dword [ecx], eax
mov dword [edx + 0x44], eax
lea eax, [edx + 0x2e8]
push eax
lea eax, [edx + 0x4c]
push eax
push ecx
push dword [edx + 0x58]
add edx, 0x68
mov ecx, 1
call fcn.10041890
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10040e60
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x10041517
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x1004151a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [ecx], 0x1b
jmp 0x1004151a
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x50], 6
mov eax, dword [edx]
mov dword [ecx + 0x48], eax
lea eax, [ecx + 0x2e8]
push eax
lea eax, [ecx + 0x50]
push eax
mov eax, dword [ecx + 0x58]
push edx
push dword [ecx + 0x5c]
add ecx, 0x68
lea edx, [ecx + eax*2]
mov ecx, 2
call fcn.10041890
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10040eb6
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x1004151a
mov dword [ecx], 0x12
cmp ebx, 6
jb 0x10040f1c
cmp dword [ebp - 0x18], 0x102
jb 0x10040f1c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov dword [ecx + 0x30], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x18]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x10]
mov dword [ecx + 0x34], esi
mov ecx, eax
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.10041db0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
mov edx, dword [ecx + 0x30]
mov esi, dword [ecx + 0x34]
mov dword [ebp - 4], edx
jmp 0x1004151a
mov eax, dword [ecx + 0x44]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, 1
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [ebp - 0x38]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x10040f8a
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x30]
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov edx, 1
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x10040f43
test al, al
je 0x10041044
test al, 0xf0
jne 0x10041044
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [ebp - 0x28], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [ebp - 0x34], edx
and ebx, dword [ebp - 4]
shr ebx, cl
mov ecx, dword [ebp - 0x38]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x10041037
nop dword [eax]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004157c
mov ebx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 8], eax
mov ecx, esi
mov edi, 1
add esi, 8
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [ebp - 4], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 4]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x10040fe0
mov ebx, dword [ebp - 8]
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov ecx, eax
mov dword [ebp - 4], edx
shr ecx, 0x10
mov dword [edi + 0x38], ecx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
test al, al
jne 0x10041073
mov dword [ecx], 0x17
jmp 0x1004151a
test al, 0x20
je 0x10041082
mov dword [ecx], 0xb
jmp 0x1004151a
test al, 0x40
je 0x1004109b
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x1004151a
movzx eax, al
and eax, 0xf
mov dword [ecx], 0x13
mov dword [ecx + 0x40], eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100410fc
cmp esi, eax
jae 0x100410dc
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x34]
jb 0x100410b8
mov ecx, dword [ebp - 0x34]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0xc]
dec eax
and eax, edx
add dword [ecx + 0x38], eax
mov ecx, dword [ebp - 0x34]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov dword [ecx], 0x14
mov eax, dword [ecx + 0x48]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov eax, 1
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [ebp - 0x38]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x10041177
nop dword [eax]
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x3c]
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov edx, 1
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x10041130
test al, 0xf0
jne 0x10041223
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [ebp - 0x28], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [ebp - 0x34], edx
and ebx, dword [ebp - 4]
shr ebx, cl
mov ecx, dword [ebp - 0x38]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x10041219
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004157c
mov ebx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 8], eax
mov ecx, esi
mov edi, 1
add esi, 8
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [ebp - 4], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 4]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x100411c2
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 0x10]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
test al, 0x40
je 0x10041254
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [eax + 0x18], str.invalid_distance_code
mov dword [ecx], 0x1b
jmp 0x1004151a
mov ebx, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x3c], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov dword [ecx + 0x40], eax
mov dword [ecx], 0x15
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100412c5
cmp esi, eax
jae 0x100412a5
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x34]
jb 0x10041281
mov ecx, dword [ebp - 0x34]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0xc]
dec eax
and eax, edx
add dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x34]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x24]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 8]
cmp dword [ecx + 0x3c], eax
jbe 0x100412eb
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x1004151a
mov dword [ecx], 0x16
cmp dword [ebp - 0x18], 0
je 0x10041579
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0x3c]
cmp eax, dword [ebp - 0x38]
jbe 0x1004133d
sub eax, dword [ebp - 0x38]
mov edi, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x34], eax
cmp eax, edi
jbe 0x10041328
add edx, dword [ecx + 0x20]
sub eax, edi
mov dword [ebp - 0x34], eax
sub edx, eax
jmp 0x1004132c
sub edx, eax
add edx, edi
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], edi
cmp eax, edi
jbe 0x1004134f
mov eax, edi
jmp 0x1004134c
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ebx
sub dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x34]
cmp edi, eax
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
cmova edi, eax
sub eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
sub eax, edi
sub ebx, edx
mov dword [ecx + 0x38], eax
nop
mov al, byte [ebx + edx]
mov byte [edx], al
inc edx
sub edi, 1
jne 0x10041370
cmp dword [ecx + 0x38], 0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
jne 0x1004151a
mov dword [ecx], 0x12
jmp 0x1004151a
cmp dword [ebp - 0x18], 0
je 0x10041579
mov edx, dword [ebp - 0x20]
mov al, byte [ecx + 0x38]
inc dword [ebp - 0x20]
dec dword [ebp - 0x18]
mov byte [edx], al
mov dword [ecx], 0x12
jmp 0x10041517
cmp dword [ecx + 8], 0
je 0x100414b7
cmp esi, 0x20
jae 0x100413f7
nop
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x100413d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
add dword [eax + 0x14], edx
mov eax, edx
add dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
test eax, eax
je 0x1004145f
cmp dword [ecx + 0x10], 0
je 0x1004143c
mov eax, dword [ebp - 0x20]
mov edi, dword [ecx + 0x14]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x10]
sub eax, ebx
jne 0x1004142f
xor eax, eax
jmp 0x10041453
mov ecx, dword [ebp - 0x38]
mov edx, eax
push ebx
call fcn.100421f0
jmp 0x1004144a
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x14]
sub edx, eax
push eax
call fcn.10041760
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, edx
jne 0x10041499
and eax, 0xff00
mov dword [ebp - 0x28], eax
mov eax, edx
shl eax, 0x10
add dword [ebp - 0x28], eax
mov eax, edx
shl dword [ebp - 0x28], 8
shr eax, 8
and eax, 0xff00
add dword [ebp - 0x28], eax
mov eax, edx
shr eax, 0x18
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ecx + 0x14]
je 0x100414b0
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x1004151a
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ecx], 0x19
cmp dword [ecx + 8], 0
je 0x10041563
cmp dword [ecx + 0x10], 0
je 0x10041563
cmp esi, 0x20
jae 0x100414fd
test ebx, ebx
je 0x10041579
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x100414d6
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x18]
je 0x1004155a
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], str.incorrect_length_check
jmp 0x1004151a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
cmp eax, 0x1c
jbe switch.0x10040290
pop esi
pop ebx
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ebx
mov dword [eax], edi
mov eax, 2
mov dword [ecx + 0x34], esi
pop esi
pop ebx
mov dword [ecx + 0x30], edx
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ecx], 0x1a
mov dword [ebp - 0x2c], 1
jmp 0x10041579
mov dword [ebp - 0x2c], 0xfffffffd
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov dword [edi + 0xc], ecx
cmp dword [ebx + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x34], esi
mov esi, dword [ebp - 0x24]
mov dword [edi + 0x10], edx
mov dword [edi], ecx
mov dword [ebx + 0x30], eax
jne 0x100415b1
cmp dword [ebx], 0x18
jge 0x100415d0
cmp esi, edx
je 0x100415d0
mov edx, esi
mov ecx, edi
call fcn.10040100
test eax, eax
je 0x100415d0
mov dword [ebx], 0x1c
pop esi
pop ebx
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x40]
sub esi, dword [edi + 0x10]
sub eax, dword [edi + 4]
add dword [edi + 8], eax
add dword [edi + 0x14], esi
add dword [ebx + 0x18], esi
cmp dword [ebx + 8], 0
je 0x1004161c
test esi, esi
je 0x1004161c
cmp dword [ebx + 0x10], 0
mov edx, dword [edi + 0xc]
je 0x10041608
sub edx, esi
jne 0x100415fd
xor eax, eax
jmp 0x10041616
mov ecx, dword [ebx + 0x14]
push esi
call fcn.100421f0
jmp 0x10041613
mov ecx, dword [ebx + 0x14]
sub edx, esi
push esi
call fcn.10041760
add esp, 4
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], eax
mov edx, dword [ebx + 4]
mov eax, 0x80
neg edx
pop esi
sbb edx, edx
xor ecx, ecx
and edx, 0x40
cmp dword [ebx], 0xb
cmove ecx, eax
mov eax, dword [ebp - 0x2c]
add edx, ecx
mov ecx, 0xfffffffb
add edx, dword [ebx + 0x34]
test eax, eax
pop ebx
mov dword [edi + 0x2c], edx
cmove eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret