Function at 0x406d0c
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.00408519
pop ecx
test eax, eax
jne case.default.0x406d9c
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je case.default.0x406d9c
mov eax, dword [edi]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x406d48
cmp dword [edi + 4], eax
jne case.default.0x406d9c
mov ebp, dword [edi + 0x1c]
mov edx, 0x3f40
mov ecx, dword [ebp + 4]
cmp ecx, 0x3f3f
jne 0x406d6d
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 0x4073e4
jmp dword [eax*4 + 0x4082ac]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x406db6
mov dword [ebp + 4], 0x3f40
jmp 0x4073e1
push 0x10
pop eax
cmp ebx, eax
jae 0x406df3
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x406dc1
mov ecx, dword [ebp + 0xc]
test cl, 2
je 0x406e50
cmp edx, 0x8b1f
jne 0x406e50
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
jne 0x406e0e
mov dword [ebp + 0x28], 0xf
push ebx
push ebx
push ebx
call fcn.00408856
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.00408856
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 0x4073e1
and dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x406e62
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x406f0f
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 0x406f0f
mov eax, edx
and al, 0xf
cmp al, 8
je 0x406e9c
mov dword [edi + 0x18], str.unknown_compression_method
jmp 0x406f16
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 0x406ebe
mov dword [ebp + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x406f06
cmp ecx, eax
ja 0x406f06
xor ebx, ebx
xor eax, eax
push ebx
inc eax
shl eax, cl
push ebx
push ebx
mov dword [ebp + 0x18], eax
call fcn.00408614
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 0x4073e1
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x406f16
mov dword [edi + 0x18], str.incorrect_header_check
mov dword [ebp + 4], 0x3f51
jmp 0x4073e1
push 0x10
pop eax
cmp ebx, eax
jae 0x406f5c
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x406f2d
mov dword [ebp + 0x14], edx
cmp dl, 8
jne 0x406e93
test edx, 0xe000
je 0x406f79
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x406f16
mov esi, dword [ebp + 0x24]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x406f91
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
test eax, 0x200
je 0x406fbb
test byte [ebp + 0xc], 4
je 0x406fbb
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], dl
push eax
mov byte [esp + 0x2d], cl
push dword [ebp + 0x1c]
call fcn.00408856
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 0x407004
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x406fd9
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40700e
mov dword [eax + 4], edx
test dword [ebp + 0x14], 0x200
je 0x40704f
test byte [ebp + 0xc], 4
je 0x40704f
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.00408856
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 0x407096
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x40706b
mov esi, dword [ebp + 0x24]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x4070ae
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 0xc], ecx
test dword [ebp + 0x14], 0x200
je 0x4070da
test byte [ebp + 0xc], 4
je 0x4070da
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], dl
push eax
mov byte [esp + 0x2d], cl
push dword [ebp + 0x1c]
call fcn.00408856
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 0x4070f7
xor ecx, ecx
test dword [ebp + 0x14], 0x400
je 0x407184
push 0x10
pop eax
cmp ebx, eax
jae 0x40713a
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x40710f
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x44], edx
test eax, eax
je 0x407147
mov dword [eax + 0x14], edx
test dword [ebp + 0x14], 0x200
je 0x407176
test byte [ebp + 0xc], 4
je 0x407176
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.00408856
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 0x40718e
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40718e
mov dword [eax + 0x10], ecx
mov dword [ebp + 4], 0x3f39
mov eax, dword [ebp + 0x14]
test eax, 0x400
je 0x407225
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [esp + 0x14]
cmovbe esi, ecx
test esi, esi
je 0x40721d
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x4071ef
cmp dword [edx + 0x10], 0
je 0x4071ef
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 0x4071d8
sub ecx, eax
jmp 0x4071da
mov ecx, esi
add eax, dword [edx + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.0040a130
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, 0x200
je 0x40720f
test byte [ebp + 0xc], 4
je 0x40720f
push esi
push dword [esp + 0x1c]
push dword [ebp + 0x1c]
call fcn.00408856
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 0x408180
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 4], 0x3f3a
jmp 0x407239
xor ecx, ecx
test dword [ebp + 0x14], 0x800
je 0x4072cf
test esi, esi
je 0x408180
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 0x407284
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x407280
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x20]
jae 0x407280
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 0x407290
cmp esi, edi
jb 0x407258
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x44]
je 0x4072b7
test byte [ebp + 0xc], 4
je 0x4072b7
push esi
push edx
push dword [ebp + 0x1c]
call fcn.00408856
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 0x408184
jmp 0x4072d9
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4072d9
mov dword [eax + 0x1c], ecx
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 4], 0x3f3b
jmp 0x4072ed
xor ecx, ecx
test dword [ebp + 0x14], 0x1000
je 0x407383
test esi, esi
je 0x408180
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 0x407338
mov edx, dword [eax + 0x24]
test edx, edx
je 0x407334
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x28]
jae 0x407334
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 0x407344
cmp esi, edi
jb 0x40730c
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x44]
je 0x40736b
test byte [ebp + 0xc], 4
je 0x40736b
push esi
push edx
push dword [ebp + 0x1c]
call fcn.00408856
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 0x408184
jmp 0x40738d
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40738d
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], 0x3f3c
mov esi, dword [ebp + 0x14]
test esi, 0x200
jne 0x40742b
xor ecx, ecx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4073c1
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.00408856
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.0x00406d9c
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 0x408184
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 0x4073fe
test byte [ebp + 0xc], 4
je 0x407450
movzx eax, word [ebp + 0x1c]
cmp edx, eax
je 0x407450
mov dword [edi + 0x18], str.header_crc_mismatch
mov dword [ebp + 4], 0x3f51
jmp 0x4073dd
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
jmp 0x4073a9
cmp ebx, 0x20
jae 0x407495
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x40746a
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 0x4074d1
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x408143
push eax
push eax
push eax
call fcn.00408614
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 0x408180
cmp dword [esp + 0x48], 6
je 0x408180
cmp dword [ebp + 8], 0
je 0x40752f
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 0x4073e1
cmp ebx, 3
jae 0x407563
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x407538
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebp + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x4075d8
sub eax, 1
je 0x40759f
sub eax, 1
je 0x407596
sub eax, 1
jne 0x4075df
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebp + 4], 0x3f51
jmp 0x4075df
mov dword [ebp + 4], 0x3f44
jmp 0x4075df
cmp dword [esp + 0x48], 6
mov dword [ebp + 0x50], 0x426b38
mov dword [ebp + 0x58], 9
mov dword [ebp + 0x54], 0x427338
mov dword [ebp + 0x5c], 5
mov dword [ebp + 4], 0x3f47
jne 0x4075df
shr edx, 2
sub ebx, 3
mov dword [esp + 0x1c], edx
jmp 0x408180
mov dword [ebp + 4], 0x3f41
shr edx, 2
sub ebx, 3
jmp 0x406ef9
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 0x407633
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x407604
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x40764d
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x406f16
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 0x408180
mov dword [ebp + 4], 0x3f43
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x4076c0
cmp ecx, esi
mov eax, esi
mov esi, dword [esp + 0x28]
cmovbe eax, ecx
cmp eax, esi
cmovbe esi, eax
test esi, esi
je 0x408180
mov ecx, dword [esp + 0x2c]
push esi
push dword [esp + 0x1c]
push ecx
call fcn.0040a130
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 0x4073d9
mov dword [ebp + 4], 0x3f3f
jmp 0x4073e1
cmp ebx, 0xe
jae 0x407700
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x4076d5
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 0x407753
cmp esi, 0x1e
ja 0x407753
and dword [ebp + 0x6c], 0
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f45
jmp case.0x406d9c.16197
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x407447
cmp ebx, 3
jae 0x407793
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x407768
mov eax, dword [ebp + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [esp + 0x1c], edx
movzx eax, word [eax*2 + 0x4273b8]
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 0x40775f
cmp eax, 0x13
jae 0x4077e1
mov eax, dword [ebp + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x4273b8]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 0x13
jb 0x4077c6
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.00408b18
mov edx, dword [esp + 0x34]
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x407829
mov dword [edi + 0x18], str.invalid_code_lengths_set
jmp 0x406f16
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 0x407a4e
mov ecx, dword [ebp + 0x58]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
jmp 0x40787b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x407852
mov esi, eax
push 0x10
shr esi, 0x10
pop ecx
cmp si, cx
jae 0x4078c8
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 0x407a20
jne 0x40793e
mov ecx, eax
shr ecx, 8
movzx esi, cl
add esi, 2
cmp ebx, esi
jae 0x407908
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x408180
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 0x4078d9
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 0x407a33
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 0x4079eb
cmp word [esp + 0x3a], 0x11
movzx ecx, ah
jne 0x407996
lea esi, [ecx + 3]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x407985
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x407954
mov ecx, dword [esp + 0x38]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x4079e1
lea esi, [ecx + 7]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x4079d2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x4079a1
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 0x407a3f
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 0x407a06
mov edi, dword [esp + 0x44]
mov eax, dword [ebp + 0x68]
add eax, dword [ebp + 0x64]
cmp ecx, eax
jb 0x407846
mov ecx, dword [ebp + 4]
jmp 0x407a4e
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x407447
mov ecx, 0x3f51
mov dword [edi + 0x18], str.invalid_bit_length_repeat
mov dword [ebp + 4], ecx
mov esi, 0x3f51
cmp ecx, esi
je 0x4073dd
xor eax, eax
cmp word [ebp + 0x274], ax
jne 0x407a75
mov dword [edi + 0x18], str.invalid_code____missing_end_of_block
mov dword [ebp + 4], esi
jmp 0x4073dd
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.00408b18
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x407ac1
mov dword [edi + 0x18], str.invalid_literal_lengths_set
mov dword [ebp + 4], 0x3f51
jmp 0x4073d9
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.00408b18
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x407b03
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x407ab5
cmp dword [esp + 0x48], 6
mov dword [ebp + 4], 0x3f47
je 0x408180
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f48
cmp esi, 6
jb 0x407b9b
mov eax, dword [esp + 0x28]
cmp eax, 0x102
jb 0x407b9b
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.00408f3f
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 0x4073e1
or dword [ebp + 0x1bc8], 0xffffffff
jmp 0x4073e1
and dword [ebp + 0x1bc8], 0
xor eax, eax
mov ecx, dword [ebp + 0x58]
lea esi, [eax + 1]
shl esi, cl
jmp 0x407bdb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x407bae
test al, al
je 0x407cb1
test al, 0xf0
jne 0x407cb1
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 0x407c9c
mov esi, dword [esp + 0x14]
test esi, esi
je 0x408180
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 0x407c43
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 0x407ce3
mov dword [ebp + 4], 0x3f4d
jmp 0x4073dd
test al, 0x20
je 0x407cfa
or dword [ebp + 0x1bc8], 0xffffffff
mov dword [ebp + 4], 0x3f3f
jmp 0x4073dd
test al, 0x40
je 0x407d0a
mov dword [edi + 0x18], str.invalid_literal_length_code
jmp 0x407447
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 0x407d72
cmp ebx, esi
jae 0x407d53
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x407d29
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 0x407dbe
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x407d91
test al, 0xf0
jne 0x407e85
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 0x407e74
mov esi, dword [esp + 0x14]
test esi, esi
je 0x408180
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 0x407e1b
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 0x407eb3
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x407447
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 0x407f20
jmp 0x407efd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408184
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 0x407ed4
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 0x408180
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [ebp + 0x48]
cmp eax, ecx
jbe 0x407f8a
sub eax, ecx
cmp eax, dword [ebp + 0x30]
jbe 0x407f60
cmp dword [ebp + 0x1bc4], 0
je 0x407f60
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x406f16
cmp eax, dword [ebp + 0x34]
jbe 0x407f72
sub eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x2c]
sub ecx, eax
add ecx, dword [ebp + 0x38]
jmp 0x407f7a
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 0x407f97
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 0x407fbd
cmp dword [ebp + 0x44], 0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
jne 0x4073e1
mov dword [ebp + 4], 0x3f48
jmp 0x4073e1
cmp dword [esp + 0x28], 0
je 0x408180
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 0x407fde
cmp dword [ebp + 0xc], 0
je 0x4080e9
cmp ebx, 0x20
jae 0x40804b
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x40801c
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 0x408091
test ecx, ecx
je 0x408091
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp dword [ebp + 0x14], 0
push ecx
push eax
push dword [ebp + 0x1c]
je 0x40807c
call fcn.00408856
jmp 0x408081
call fcn.00408614
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 0x4080db
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 0x4080dd
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x406f16
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 0x40816d
cmp dword [ebp + 0x14], eax
je 0x40816d
cmp ebx, 0x20
jae 0x408132
mov eax, dword [esp + 0x18]
test esi, esi
je 0x408180
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 0x408105
xor eax, eax
cmp edx, dword [ebp + 0x20]
je 0x408167
mov dword [edi + 0x18], str.incorrect_length_check
jmp 0x406f16
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 0x4073f5
mov dword [esp + 0x1c], eax
mov ebx, eax
mov dword [ebp + 4], 0x3f50
xor eax, eax
inc eax
jmp 0x40817c
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 0x4081d2
cmp edi, dword [esi + 0x10]
je 0x4081f6
cmp dword [ebp + 4], 0x3f51
jge 0x4081f6
cmp dword [ebp + 4], 0x3f4e
jl 0x4081d2
cmp dword [esp + 0x48], 4
je 0x4081f6
mov eax, edi
sub eax, dword [esi + 0x10]
push eax
push dword [esi + 0xc]
push esi
call fcn.0040854c
add esp, 0xc
test eax, eax
je 0x4081f6
mov dword [ebp + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x4073f5
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 0x40823f
test edi, edi
je 0x40823f
mov eax, dword [esi + 0xc]
sub eax, edi
push edi
push eax
push dword [ebp + 0x1c]
cmp dword [ebp + 0x14], ebx
je 0x40822d
call fcn.00408856
jmp 0x408232
call fcn.00408614
mov edx, dword [esp + 0x48]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebp + 4], 0x3f47
je 0x408251
cmp dword [ebp + 4], 0x3f42
jne 0x408256
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 0x408288
test edi, edi
je 0x40828f
cmp dword [esp + 0x48], 4
jne 0x4082a0
mov eax, dword [esp + 0x30]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x4073f6
mov eax, dword [esp + 0x30]
jmp 0x4073f6