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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
push edi
test esi, esi
je case.default.0x40993a
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je case.default.0x40993a
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
je case.default.0x40993a
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4098e6
cmp dword [esi + 4], eax
jne case.default.0x40993a
mov eax, dword [ebx]
push 0xc
pop ecx
cmp eax, 0xb
jne 0x4098f4
mov dword [ebx], ecx
mov eax, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], ecx
cmp eax, 0x1c
ja case.default.0x40993a
mov ecx, eax
mov dword [ebp - 0x38], 0x1f
mov dword [ebp - 0x44], 0x1b
mov dword [ebp - 0x3c], 0x11
jmp dword [eax*4 + 0x40abc6]
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x409953
mov dword [ebx], 0xc
jmp 0x40a0f6
push 0x10
pop eax
cmp edi, eax
jae 0x40998d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x10
jb 0x40995d
mov ecx, dword [ebx + 8]
test cl, 2
je 0x4099cc
cmp edx, 0x8b1f
jne 0x4099cc
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x20]
xor edi, edi
mov byte [ebp - 0x20], al
push 2
xor ecx, ecx
mov dword [ebx + 0x18], edi
mov byte [ebp - 0x1f], 0x8b
call fcn.0040b6de
mov edx, edi
mov dword [ebx + 0x18], eax
pop ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx], 1
jmp 0x40a0f6
and dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4099de
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebx + 8]
test cl, 1
je 0x409a5d
movzx ecx, dl
mov eax, edx
shr eax, 8
xor edx, edx
shl ecx, 8
add eax, ecx
div dword [ebp - 0x38]
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x409a5d
mov eax, edx
and al, 0xf
cmp al, 8
je 0x409a0d
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x409a64
shr edx, 4
sub edi, 4
mov ecx, edx
mov dword [ebp - 0xc], edx
and ecx, 0xf
mov dword [ebp - 0x14], edi
add ecx, 8
cmp ecx, dword [ebx + 0x24]
jbe 0x409a2f
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x409a64
xor edi, edi
shr edx, 8
inc edi
not edx
mov eax, edi
mov dword [ebx + 0x18], edi
and edx, 2
shl eax, cl
or edx, 9
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [esi + 0x30], edi
mov dword [ebx], edx
mov edi, eax
mov edx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x40a0f6
mov dword [esi + 0x18], str.incorrect_header_check
mov dword [ebx], 0x1b
jmp 0x40a0f6
push 0x10
pop eax
cmp edi, eax
jae 0x409aa6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x10
jb 0x409a79
mov dword [ebx + 0x10], edx
cmp dl, 8
jne 0x409a04
test edx, 0xe000
je 0x409ac3
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x409a64
mov esi, dword [ebx + 0x20]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x409adb
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebx + 0x10]
test eax, 0x200
je 0x409af9
mov byte [ebp - 0x20], dl
lea edx, [ebp - 0x20]
mov byte [ebp - 0x1f], cl
mov ecx, dword [ebx + 0x18]
push 2
call fcn.0040b6de
pop ecx
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx], 2
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
cmp edi, 0x20
jae 0x409b37
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
movzx eax, byte [esi]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
inc esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
cmp edi, 0x20
jb 0x409b10
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409b41
mov dword [eax + 4], edx
test dword [ebx + 0x10], 0x200
je 0x409b74
mov ecx, dword [ebx + 0x18]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, edx
mov byte [ebp - 0x20], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ebp - 0x1d], dl
lea edx, [ebp - 0x20]
push 4
mov byte [ebp - 0x1e], al
call fcn.0040b6de
pop ecx
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx], 3
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
push 0x10
pop eax
cmp edi, eax
jae 0x409bb6
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
movzx eax, byte [esi]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
inc esi
push 0x10
pop eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
cmp edi, eax
jb 0x409b8d
mov esi, dword [ebx + 0x20]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x409bce
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + 0xc], ecx
test dword [ebx + 0x10], 0x200
je 0x409bee
mov byte [ebp - 0x20], dl
lea edx, [ebp - 0x20]
mov byte [ebp - 0x1f], cl
mov ecx, dword [ebx + 0x18]
push 2
call fcn.0040b6de
pop ecx
mov dword [ebx + 0x18], eax
xor ecx, ecx
mov dword [ebx], 4
mov edx, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x409c04
xor ecx, ecx
test dword [ebx + 0x10], 0x400
je 0x409c7c
push 0x10
pop eax
cmp edi, eax
jae 0x409c40
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
movzx eax, byte [esi]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
inc esi
push 0x10
pop eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
cmp edi, eax
jb 0x409c17
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x40], edx
test eax, eax
je 0x409c4d
mov dword [eax + 0x14], edx
test dword [ebx + 0x10], 0x200
je 0x409c70
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x20], dl
shr edx, 8
mov byte [ebp - 0x1f], dl
lea edx, [ebp - 0x20]
push 2
call fcn.0040b6de
pop ecx
mov dword [ebx + 0x18], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edi
jmp 0x409c86
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409c86
mov dword [eax + 0x10], ecx
mov dword [ebx], 5
mov ecx, dword [ebx + 0x10]
test ecx, 0x400
je 0x409d39
mov eax, dword [ebx + 0x40]
mov esi, dword [ebp - 0x10]
cmp eax, esi
cmovbe esi, eax
test esi, esi
je 0x409d2e
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x34], eax
test edx, edx
je 0x409cfb
mov ebx, dword [edx + 0x10]
test ebx, ebx
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
je 0x409cfb
mov edx, dword [edx + 0x14]
mov ecx, dword [ebx + 0x20]
sub edx, eax
mov ecx, dword [ecx + 0x18]
lea eax, [esi + edx]
cmp eax, ecx
jbe 0x409cde
sub ecx, edx
jmp 0x409ce0
mov ecx, esi
mov eax, dword [ebp - 0x40]
push ecx
push dword [ebp - 8]
add eax, edx
push eax
call fcn.0040d060
mov eax, dword [ebx + 0x40]
add esp, 0xc
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
test ecx, 0x200
je 0x409d19
mov eax, dword [ebp - 8]
test eax, eax
je 0x409d16
mov ecx, dword [ebx + 0x18]
mov edx, eax
push esi
call fcn.0040b6de
pop ecx
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
sub ecx, esi
add dword [ebp - 8], esi
sub eax, esi
mov dword [ebp - 0x10], ecx
mov dword [ebx + 0x40], eax
jmp 0x409d31
mov ecx, dword [ebp - 0x10]
test eax, eax
jne 0x40aaf9
xor edx, edx
mov dword [ebx], 6
mov dword [ebx + 0x40], edx
jmp 0x409d48
xor edx, edx
test dword [ebx + 0x10], 0x800
je 0x409dd0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
mov esi, edx
mov edi, ecx
mov eax, dword [ebp - 8]
mov al, byte [esi + eax]
inc esi
mov byte [ebp - 1], al
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409d89
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x409d89
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x409d89
mov al, byte [ebp - 1]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov cl, byte [ebp - 1]
test cl, cl
je 0x409d94
cmp esi, edi
jb 0x409d60
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp - 0x14]
je 0x409db9
mov eax, dword [ebp - 8]
test eax, eax
je 0x409db6
mov ecx, dword [ebx + 0x18]
mov edx, eax
push esi
call fcn.0040b6de
pop ecx
mov cl, byte [ebp - 1]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 0x10], esi
add eax, esi
mov dword [ebp - 8], eax
test cl, cl
je 0x409dda
mov ecx, dword [ebp - 0x10]
jmp 0x40aafc
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409dda
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx], 7
mov dword [ebx + 0x40], edx
jmp 0x409de9
xor edx, edx
test dword [ebx + 0x10], 0x1000
je 0x409e6f
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
mov esi, edx
mov edi, ecx
mov eax, dword [ebp - 8]
mov al, byte [esi + eax]
inc esi
mov byte [ebp - 1], al
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409e2a
mov edx, dword [eax + 0x24]
test edx, edx
je 0x409e2a
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x409e2a
mov al, byte [ebp - 1]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov cl, byte [ebp - 1]
test cl, cl
je 0x409e35
cmp esi, edi
jb 0x409e01
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp - 0x14]
je 0x409e5a
mov eax, dword [ebp - 8]
test eax, eax
je 0x409e57
mov ecx, dword [ebx + 0x18]
mov edx, eax
push esi
call fcn.0040b6de
pop ecx
mov cl, byte [ebp - 1]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 0x10], esi
add eax, esi
mov dword [ebp - 8], eax
test cl, cl
jne 0x409dc8
jmp 0x409e79
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409e79
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx], 8
mov esi, dword [ebx + 0x10]
test esi, 0x200
jne 0x409ee4
xor ecx, ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x409ea9
sar esi, 9
and esi, 1
mov dword [eax + 0x2c], esi
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x30], 1
mov esi, dword [ebp - 0x18]
mov dword [ebx + 0x18], ecx
mov dword [esi + 0x30], ecx
mov dword [ebx], 0xb
jmp 0x40a0f6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
push 0x10
pop eax
cmp edi, eax
jb 0x409ebd
movzx eax, word [ebx + 0x18]
cmp edx, eax
je 0x409f02
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x409a64
xor ecx, ecx
mov edx, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x409e8f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
cmp edi, 0x20
jb 0x409f13
mov ecx, edx
mov dword [ebx], 0xa
mov edi, 0xff00
mov eax, edx
shl eax, 0x10
and ecx, edi
add ecx, eax
mov eax, edx
shr eax, 8
and eax, edi
shl ecx, 8
shr edx, 0x18
add eax, ecx
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
jmp 0x409f76
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x40aac1
xor ecx, ecx
mov dword [ebx], 0xb
inc ecx
mov dword [ebx + 0x18], ecx
mov dword [esi + 0x30], ecx
jmp 0x409f92
xor eax, eax
cmp dword [ebx + 4], eax
je 0x409fd5
mov ecx, edi
mov dword [ebx], 0x18
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x40a0f6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
cmp edi, 3
jb 0x409fb1
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x40a038
sub eax, 1
je 0x40a014
sub eax, 1
je 0x40a00c
sub eax, 1
jne 0x40a03e
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
jmp 0x40a03e
mov dword [ebx], 0xf
jmp 0x40a03e
mov dword [ebx + 0x4c], 0x489778
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x489f78
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x40a03e
mov dword [ebx], 0xd
shr edx, 2
sub edi, 3
jmp 0x409a52
mov ecx, edi
and ecx, 7
shr edx, cl
sub edi, ecx
jmp 0x40a075
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edx
cmp edi, 0x20
jb 0x40a054
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x40a09a
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x409a64
xor eax, eax
mov dword [ebx + 0x40], ecx
mov edx, eax
mov dword [ebx], 0xe
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x409eb2
mov eax, dword [ebp - 0x10]
cmp ecx, eax
mov esi, dword [ebp - 0x1c]
cmovbe eax, ecx
cmp eax, esi
cmovbe esi, eax
test esi, esi
je 0x40aaf6
push esi
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.0040d060
sub dword [ebp - 0x10], esi
add esp, 0xc
add dword [ebp - 8], esi
sub dword [ebp - 0x1c], esi
add dword [ebp - 0x24], esi
sub dword [ebx + 0x40], esi
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx]
mov eax, ecx
cmp eax, 0x1c
jbe switch.0x0040993a
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
cmp edi, 0xe
jae 0x40a13a
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
movzx eax, byte [esi]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
inc esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
cmp edi, 0xe
jb 0x40a113
mov esi, dword [ebp - 0x38]
mov ecx, edx
shr edx, 5
and ecx, esi
and esi, edx
add ecx, 0x101
shr edx, 5
inc esi
mov eax, edx
mov dword [ebx + 0x60], ecx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebx + 0x64], esi
sub edi, 0xe
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp ecx, 0x11e
ja 0x40a188
cmp esi, 0x1e
ja 0x40a188
and dword [ebx + 0x68], 0
mov esi, dword [ebp - 0x18]
push 0x10
pop eax
mov dword [ebx], eax
jmp case.0x40993a.16
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x409a64
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
cmp edi, 3
jb 0x40a197
mov eax, dword [ebx + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x489ff8]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
sub edi, 3
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x40a1bb
cmp eax, 0x13
jae 0x40a20c
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x489ff8]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x40a1f1
lea eax, [ebx + 0x530]
lea edx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [edx], eax
lea ecx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [ecx], 7
push eax
push ecx
push edx
push 0x13
lea edx, [ebx + 0x70]
xor ecx, ecx
call fcn.0040aedf
mov edx, dword [ebp - 0xc]
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x40a253
mov dword [esi + 0x18], str.invalid_code_lengths_set
jmp 0x409a64
mov eax, dword [ebp - 0x3c]
mov ecx, eax
and dword [ebx + 0x68], 0
mov dword [ebx], eax
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp dword [ebx + 0x68], eax
jae 0x40a488
mov ecx, dword [ebx + 0x54]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
jmp 0x40a29d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
mov ecx, dword [ebx + 0x4c]
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, edi
ja 0x40a279
mov ecx, eax
push 0x10
shr ecx, 0x10
pop esi
cmp cx, si
jae 0x40a31d
mov ecx, eax
shr ecx, 8
movzx esi, cl
cmp edi, esi
jae 0x40a2f9
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40aaf9
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
cmp edi, esi
jb 0x40a2d0
mov edx, dword [ebp - 0xc]
movzx ecx, ah
mov ax, word [ebp - 0x32]
sub edi, ecx
shr edx, cl
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x68]
jmp 0x40a455
cmp word [ebp - 0x32], si
jne 0x40a385
movzx esi, ah
jmp 0x40a34c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
lea eax, [esi + 2]
cmp edi, eax
jb 0x40a328
mov eax, dword [ebx + 0x68]
mov ecx, esi
shr edx, cl
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
test eax, eax
je 0x40a46a
movzx eax, word [ebx + eax*2 + 0x6e]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
mov dword [ebp - 0x34], eax
sub edi, 2
jmp 0x40a424
mov ecx, dword [ebp - 0x3c]
cmp word [ebp - 0x32], cx
movzx ecx, ah
jne 0x40a3d7
lea esi, [ecx + 3]
mov dword [ebp - 0x40], ecx
cmp edi, esi
jae 0x40a3c6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp edi, esi
jb 0x40a39b
mov ecx, dword [ebp - 0x40]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x40a41b
lea esi, [ecx + 7]
mov dword [ebp - 0x40], ecx
cmp edi, esi
jae 0x40a40c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp edi, esi
jb 0x40a3e1
mov ecx, dword [ebp - 0x40]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
pop eax
sub eax, ecx
add edi, eax
and dword [ebp - 0x34], 0
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x64]
add ecx, esi
add eax, dword [ebx + 0x60]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp ecx, eax
ja 0x40a479
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], dx
mov ecx, dword [ebx + 0x68]
lea ecx, [ecx + 1]
mov dword [ebx + 0x68], ecx
sub esi, 1
jne 0x40a43c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp ecx, eax
jb 0x40a26d
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x18]
jmp 0x40a488
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x409a64
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x44]
mov dword [ebx], ecx
mov dword [esi + 0x18], str.invalid_bit_length_repeat
cmp ecx, 0x1b
je 0x40a0f6
lea eax, [ebx + 0x530]
lea esi, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
lea ecx, [ebx + 0x2f0]
mov dword [esi], eax
push ecx
lea eax, [ebx + 0x54]
xor ecx, ecx
push eax
push esi
push dword [ebx + 0x60]
lea edx, [ebx + 0x70]
mov dword [eax], 9
inc ecx
call fcn.0040aedf
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x40a4e3
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ebx], 0x1b
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x40a0f6
mov eax, dword [esi]
lea ecx, [ebx + 0x2f0]
push ecx
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x58]
push eax
mov dword [eax], 6
mov eax, dword [ebx + 0x60]
push esi
push dword [ebx + 0x64]
add eax, 0x38
push 2
pop ecx
lea edx, [ebx + eax*2]
call fcn.0040aedf
mov esi, dword [ebp - 0x18]
mov ecx, eax
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x40a52c
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x409a64
mov dword [ebx], 0x12
mov eax, dword [ebp - 0x10]
cmp eax, 6
jb 0x40a58b
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x102
jb 0x40a58b
mov ebx, dword [ebp - 0x24]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, esi
mov dword [ebx + 0x38], edx
mov edx, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [ebx + 0x3c], edi
call fcn.0040b308
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
jmp 0x409a52
mov ecx, dword [ebx + 0x54]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x40], ecx
jmp 0x40a5c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x4c]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x40a59d
test al, al
je 0x40a692
test al, 0xf0
jne 0x40a692
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x34], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x40]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x14]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x40a685
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40ab4b
mov esi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add ebx, eax
movzx edi, dh
movzx eax, word [ebp - 0x32]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
mov dword [ebp - 0xc], ebx
shl esi, cl
mov ecx, edi
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x14]
cmp ecx, edi
ja 0x40a62c
mov ebx, dword [ebp - 0x2c]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov ecx, eax
mov dword [ebp - 0xc], edx
shr ecx, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x40a6bb
mov dword [ebx], 0x17
jmp 0x40a0f3
test al, 0x20
je 0x40a6ca
mov dword [ebx], 0xb
jmp 0x40a0f3
test al, 0x40
je 0x40a6dd
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x409a64
movzx eax, al
and eax, 0xf
mov dword [ebx], 0x13
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x40a734
jmp 0x40a719
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
cmp edi, esi
jb 0x40a6f5
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x40], eax
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0x40], ecx
jmp 0x40a776
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x50]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x40a74c
test al, 0xf0
jne 0x40a839
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x34], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x40]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x14]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x40a82c
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40ab4b
mov esi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add ebx, eax
movzx edi, dh
movzx eax, word [ebp - 0x32]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
mov dword [ebp - 0xc], ebx
shl esi, cl
mov ecx, edi
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x14]
cmp ecx, edi
ja 0x40a7d3
mov ebx, dword [ebp - 0x2c]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
test al, 0x40
je 0x40a85e
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x409a64
mov ecx, eax
mov dword [ebx], 0x15
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x40a8bd
jmp 0x40a8a2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
cmp edi, esi
jb 0x40a87e
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebx + 0x44], eax
jbe 0x40a8dc
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x409a64
mov dword [ebx], 0x16
jmp 0x40a8e7
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40aaf6
sub ecx, eax
mov eax, dword [ebx + 0x44]
cmp eax, ecx
jbe 0x40a91d
sub eax, ecx
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
jbe 0x40a909
sub eax, ecx
mov ecx, dword [ebx + 0x28]
mov esi, dword [ebx + 0x40]
sub ecx, eax
add ecx, dword [ebx + 0x34]
mov edx, esi
cmp eax, esi
cmovbe edx, eax
mov dword [ebp - 0x34], edx
jmp 0x40a928
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x40]
sub ecx, eax
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x1c]
mov edx, eax
cmp dword [ebp - 0x34], edx
cmovbe eax, dword [ebp - 0x34]
sub edx, eax
mov dword [ebp - 0x40], eax
sub esi, eax
mov dword [ebp - 0x1c], edx
sub ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x40], esi
mov esi, eax
mov al, byte [ecx + edx]
mov byte [edx], al
inc edx
sub esi, 1
jne 0x40a949
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0xc]
cmp dword [ebx + 0x40], esi
jne 0x40a0f3
mov dword [ebx], 0x12
jmp 0x40a0f3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40aaf6
mov esi, dword [ebp - 0x24]
inc dword [ebp - 0x24]
dec ecx
mov al, byte [ebx + 0x40]
mov dword [ebp - 0x1c], ecx
mov byte [esi], al
jmp 0x40a963
cmp dword [ebx + 8], 0
je 0x40aa6f
jmp 0x40a9bd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp edi, 0x20
jb 0x40a996
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], ecx
test eax, eax
je 0x40aa18
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
sub eax, esi
test ecx, ecx
je 0x40a9fc
test eax, eax
jne 0x40a9ef
xor esi, esi
jmp 0x40aa0d
mov ecx, dword [ebx + 0x18]
mov edx, eax
push esi
call fcn.0040b6de
jmp 0x40aa07
mov ecx, dword [ebx + 0x18]
mov edx, eax
push esi
call fcn.0040ac9a
mov edx, dword [ebp - 0xc]
mov esi, eax
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], esi
mov dword [eax + 0x30], esi
jmp 0x40aa1e
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, edx
mov dword [ebp - 0x28], eax
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp dword [ebp - 0x40], 0
cmovne ecx, edx
cmp ecx, esi
mov esi, dword [ebp - 0x18]
je 0x40aa63
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x409a64
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx], 0x19
xor eax, eax
cmp dword [ebx + 8], eax
je 0x40aaea
cmp dword [ebx + 0x10], eax
je 0x40aaea
cmp edi, 0x20
jae 0x40aab0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x40aafc
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp edi, 0x20
jb 0x40aa86
xor eax, eax
cmp edx, dword [ebx + 0x1c]
je 0x40aae5
mov dword [esi + 0x18], str.incorrect_length_check
jmp 0x409a64
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
push 2
jmp 0x40a105
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx], 0x1a
xor ecx, ecx
inc ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x3c], edi
xor edi, edi
mov dword [esi + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x10], edx
mov dword [ebx + 0x38], ecx
cmp dword [ebx + 0x28], edi
jne 0x40ab2c
cmp dword [ebx], 0x18
jge 0x40ab53
cmp eax, edx
je 0x40ab53
mov edx, eax
mov ecx, esi
call fcn.004097d4
test eax, eax
je 0x40ab50
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x40a105
push 0xfffffffffffffffd
pop ecx
jmp 0x40aaf3
mov ebx, dword [ebp - 0x2c]
jmp 0x40aaf9
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x48]
sub eax, dword [esi + 0x10]
sub ecx, dword [esi + 4]
add dword [esi + 8], ecx
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
cmp dword [ebx + 8], edi
je 0x40ab96
test eax, eax
je 0x40ab96
mov edx, dword [esi + 0xc]
mov ecx, dword [ebx + 0x18]
sub edx, eax
cmp dword [ebx + 0x10], edi
je 0x40ab87
test edx, edx
je 0x40ab90
push eax
call fcn.0040b6de
jmp 0x40ab8d
push eax
call fcn.0040ac9a
mov edi, eax
pop ecx
mov dword [ebx + 0x18], edi
mov dword [esi + 0x30], edi
mov edx, dword [ebx + 4]
mov eax, 0x80
neg edx
push 0xfffffffffffffffb
sbb edx, edx
xor ecx, ecx
and edx, 0x40
cmp dword [ebx], 0xb
cmove ecx, eax
mov eax, dword [ebp - 0x30]
add edx, ecx
add edx, dword [ebx + 0x3c]
test eax, eax
pop ecx
mov dword [esi + 0x2c], edx
cmove eax, ecx
jmp 0x40a106