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

Disassembly:
jmp 0x407d02
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
push edi
call fcn.00409ebd
pop ecx
test eax, eax
jne case.default.0x407d92
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je case.default.0x407d92
mov eax, dword [edi]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x407d3e
cmp dword [edi + 4], eax
jne case.default.0x407d92
mov ebp, dword [edi + 0x1c]
mov edx, 0x3f40
mov ecx, dword [ebp + 4]
cmp ecx, 0x3f3f
jne 0x407d63
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 0x4083da
jmp dword [eax*4 + 0x4092a2]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x407dac
mov dword [ebp + 4], 0x3f40
jmp 0x4083d7
push 0x10
pop eax
cmp ebx, eax
jae 0x407de9
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x407db7
mov ecx, dword [ebp + 0xc]
test cl, 2
je 0x407e46
cmp edx, 0x8b1f
jne 0x407e46
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
jne 0x407e04
mov dword [ebp + 0x28], 0xf
push ebx
push ebx
push ebx
call fcn.00401636
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.00401636
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 0x4083d7
and dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x407e58
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x407f05
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 0x407f05
mov eax, edx
and al, 0xf
cmp al, 8
je 0x407e92
mov dword [edi + 0x18], str.unknown_compression_method
jmp 0x407f0c
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 0x407eb4
mov dword [ebp + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x407efc
cmp ecx, eax
ja 0x407efc
xor ebx, ebx
xor eax, eax
push ebx
inc eax
shl eax, cl
push ebx
push ebx
mov dword [ebp + 0x18], eax
call fcn.004017a3
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 0x4083d7
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x407f0c
mov dword [edi + 0x18], str.incorrect_header_check
mov dword [ebp + 4], 0x3f51
jmp 0x4083d7
push 0x10
pop eax
cmp ebx, eax
jae 0x407f52
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x407f23
mov dword [ebp + 0x14], edx
cmp dl, 8
jne 0x407e89
test edx, 0xe000
je 0x407f6f
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x407f0c
mov esi, dword [ebp + 0x24]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x407f87
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
test eax, 0x200
je 0x407fb1
test byte [ebp + 0xc], 4
je 0x407fb1
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], dl
push eax
mov byte [esp + 0x2d], cl
push dword [ebp + 0x1c]
call fcn.00401636
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 0x407ffa
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x407fcf
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x408004
mov dword [eax + 4], edx
test dword [ebp + 0x14], 0x200
je 0x408045
test byte [ebp + 0xc], 4
je 0x408045
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.00401636
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 0x40808c
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x408061
mov esi, dword [ebp + 0x24]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x4080a4
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 0xc], ecx
test dword [ebp + 0x14], 0x200
je 0x4080d0
test byte [ebp + 0xc], 4
je 0x4080d0
push 2
lea eax, [esp + 0x28]
mov byte [esp + 0x28], dl
push eax
mov byte [esp + 0x2d], cl
push dword [ebp + 0x1c]
call fcn.00401636
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 0x4080ed
xor ecx, ecx
test dword [ebp + 0x14], 0x400
je 0x40817a
push 0x10
pop eax
cmp ebx, eax
jae 0x408130
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x408105
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x44], edx
test eax, eax
je 0x40813d
mov dword [eax + 0x14], edx
test dword [ebp + 0x14], 0x200
je 0x40816c
test byte [ebp + 0xc], 4
je 0x40816c
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.00401636
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 0x408184
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x408184
mov dword [eax + 0x10], ecx
mov dword [ebp + 4], 0x3f39
mov eax, dword [ebp + 0x14]
test eax, 0x400
je 0x40821b
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [esp + 0x14]
cmovbe esi, ecx
test esi, esi
je 0x408213
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x4081e5
cmp dword [edx + 0x10], 0
je 0x4081e5
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 0x4081ce
sub ecx, eax
jmp 0x4081d0
mov ecx, esi
add eax, dword [edx + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, 0x200
je 0x408205
test byte [ebp + 0xc], 4
je 0x408205
push esi
push dword [esp + 0x1c]
push dword [ebp + 0x1c]
call fcn.00401636
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 0x409176
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 4], 0x3f3a
jmp 0x40822f
xor ecx, ecx
test dword [ebp + 0x14], 0x800
je 0x4082c5
test esi, esi
je 0x409176
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 0x40827a
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x408276
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x20]
jae 0x408276
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 0x408286
cmp esi, edi
jb 0x40824e
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x44]
je 0x4082ad
test byte [ebp + 0xc], 4
je 0x4082ad
push esi
push edx
push dword [ebp + 0x1c]
call fcn.00401636
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 0x40917a
jmp 0x4082cf
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4082cf
mov dword [eax + 0x1c], ecx
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x44], ecx
mov dword [ebp + 4], 0x3f3b
jmp 0x4082e3
xor ecx, ecx
test dword [ebp + 0x14], 0x1000
je 0x408379
test esi, esi
je 0x409176
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 0x40832e
mov edx, dword [eax + 0x24]
test edx, edx
je 0x40832a
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x28]
jae 0x40832a
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 0x40833a
cmp esi, edi
jb 0x408302
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x44]
je 0x408361
test byte [ebp + 0xc], 4
je 0x408361
push esi
push edx
push dword [ebp + 0x1c]
call fcn.00401636
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 0x40917a
jmp 0x408383
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x408383
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], 0x3f3c
mov esi, dword [ebp + 0x14]
test esi, 0x200
jne 0x408421
xor ecx, ecx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4083b7
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.00401636
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.0x00407d92
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 0x40917a
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 0x4083f4
test byte [ebp + 0xc], 4
je 0x408446
movzx eax, word [ebp + 0x1c]
cmp edx, eax
je 0x408446
mov dword [edi + 0x18], str.header_crc_mismatch
mov dword [ebp + 4], 0x3f51
jmp 0x4083d3
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
jmp 0x40839f
cmp ebx, 0x20
jae 0x40848b
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x408460
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 0x4084c7
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x409139
push eax
push eax
push eax
call fcn.004017a3
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 0x409176
cmp dword [esp + 0x48], 6
je 0x409176
cmp dword [ebp + 8], 0
je 0x408525
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 0x4083d7
cmp ebx, 3
jae 0x408559
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x40852e
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebp + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x4085ce
sub eax, 1
je 0x408595
sub eax, 1
je 0x40858c
sub eax, 1
jne 0x4085d5
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebp + 4], 0x3f51
jmp 0x4085d5
mov dword [ebp + 4], 0x3f44
jmp 0x4085d5
cmp dword [esp + 0x48], 6
mov dword [ebp + 0x50], 0x420fe8
mov dword [ebp + 0x58], 9
mov dword [ebp + 0x54], 0x4217e8
mov dword [ebp + 0x5c], 5
mov dword [ebp + 4], 0x3f47
jne 0x4085d5
shr edx, 2
sub ebx, 3
mov dword [esp + 0x1c], edx
jmp 0x409176
mov dword [ebp + 4], 0x3f41
shr edx, 2
sub ebx, 3
jmp 0x407eef
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 0x408629
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x4085fa
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x408643
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x407f0c
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 0x409176
mov dword [ebp + 4], 0x3f43
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x4086b6
cmp ecx, esi
mov eax, esi
mov esi, dword [esp + 0x28]
cmovbe eax, ecx
cmp eax, esi
cmovbe esi, eax
test esi, esi
je 0x409176
mov ecx, dword [esp + 0x2c]
push esi
push dword [esp + 0x1c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
sub dword [esp + 0x20], esi
add esp, 0xc
add dword [esp + 0x18], esi
sub dword [esp + 0x28], esi
add dword [esp + 0x2c], esi
sub dword [ebp + 0x44], esi
jmp 0x4083cf
mov dword [ebp + 4], 0x3f3f
jmp 0x4083d7
cmp ebx, 0xe
jae 0x4086f6
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x4086cb
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 0x408749
cmp esi, 0x1e
ja 0x408749
and dword [ebp + 0x6c], 0
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f45
jmp case.0x407d92.16197
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x40843d
cmp ebx, 3
jae 0x408789
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x40875e
mov eax, dword [ebp + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [esp + 0x1c], edx
movzx eax, word [eax*2 + 0x421868]
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 0x408755
cmp eax, 0x13
jae 0x4087d7
mov eax, dword [ebp + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x421868]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 0x13
jb 0x4087bc
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.00401825
mov edx, dword [esp + 0x34]
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x40881f
mov dword [edi + 0x18], str.invalid_code_lengths_set
jmp 0x407f0c
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 0x408a44
mov ecx, dword [ebp + 0x58]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
jmp 0x408871
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x408848
mov esi, eax
push 0x10
shr esi, 0x10
pop ecx
cmp si, cx
jae 0x4088be
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 0x408a16
jne 0x408934
mov ecx, eax
shr ecx, 8
movzx esi, cl
add esi, 2
cmp ebx, esi
jae 0x4088fe
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x409176
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 0x4088cf
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 0x408a29
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 0x4089e1
cmp word [esp + 0x3a], 0x11
movzx ecx, ah
jne 0x40898c
lea esi, [ecx + 3]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x40897b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x40894a
mov ecx, dword [esp + 0x38]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x4089d7
lea esi, [ecx + 7]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x4089c8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x408997
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 0x408a35
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 0x4089fc
mov edi, dword [esp + 0x44]
mov eax, dword [ebp + 0x68]
add eax, dword [ebp + 0x64]
cmp ecx, eax
jb 0x40883c
mov ecx, dword [ebp + 4]
jmp 0x408a44
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x40843d
mov ecx, 0x3f51
mov dword [edi + 0x18], str.invalid_bit_length_repeat
mov dword [ebp + 4], ecx
mov esi, 0x3f51
cmp ecx, esi
je 0x4083d3
xor eax, eax
cmp word [ebp + 0x274], ax
jne 0x408a6b
mov dword [edi + 0x18], str.invalid_code____missing_end_of_block
mov dword [ebp + 4], esi
jmp 0x4083d3
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.00401825
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x408ab7
mov dword [edi + 0x18], str.invalid_literal_lengths_set
mov dword [ebp + 4], 0x3f51
jmp 0x4083cf
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.00401825
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x408af9
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x408aab
cmp dword [esp + 0x48], 6
mov dword [ebp + 4], 0x3f47
je 0x409176
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], 0x3f48
cmp esi, 6
jb 0x408b91
mov eax, dword [esp + 0x28]
cmp eax, 0x102
jb 0x408b91
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.004014ba
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 0x4083d7
or dword [ebp + 0x1bc8], 0xffffffff
jmp 0x4083d7
and dword [ebp + 0x1bc8], 0
xor eax, eax
mov ecx, dword [ebp + 0x58]
lea esi, [eax + 1]
shl esi, cl
jmp 0x408bd1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x408ba4
test al, al
je 0x408ca7
test al, 0xf0
jne 0x408ca7
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 0x408c92
mov esi, dword [esp + 0x14]
test esi, esi
je 0x409176
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 0x408c39
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 0x408cd9
mov dword [ebp + 4], 0x3f4d
jmp 0x4083d3
test al, 0x20
je 0x408cf0
or dword [ebp + 0x1bc8], 0xffffffff
mov dword [ebp + 4], 0x3f3f
jmp 0x4083d3
test al, 0x40
je 0x408d00
mov dword [edi + 0x18], str.invalid_literal_length_code
jmp 0x40843d
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 0x408d68
cmp ebx, esi
jae 0x408d49
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x408d1f
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 0x408db4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x408d87
test al, 0xf0
jne 0x408e7b
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 0x408e6a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x409176
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 0x408e11
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 0x408ea9
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x40843d
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 0x408f16
jmp 0x408ef3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40917a
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 0x408eca
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 0x409176
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [ebp + 0x48]
cmp eax, ecx
jbe 0x408f80
sub eax, ecx
cmp eax, dword [ebp + 0x30]
jbe 0x408f56
cmp dword [ebp + 0x1bc4], 0
je 0x408f56
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x407f0c
cmp eax, dword [ebp + 0x34]
jbe 0x408f68
sub eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x2c]
sub ecx, eax
add ecx, dword [ebp + 0x38]
jmp 0x408f70
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 0x408f8d
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 0x408fb3
cmp dword [ebp + 0x44], 0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
jne 0x4083d7
mov dword [ebp + 4], 0x3f48
jmp 0x4083d7
cmp dword [esp + 0x28], 0
je 0x409176
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 0x408fd4
cmp dword [ebp + 0xc], 0
je 0x4090df
cmp ebx, 0x20
jae 0x409041
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x409012
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 0x409087
test ecx, ecx
je 0x409087
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp dword [ebp + 0x14], 0
push ecx
push eax
push dword [ebp + 0x1c]
je 0x409072
call fcn.00401636
jmp 0x409077
call fcn.004017a3
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 0x4090d1
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 0x4090d3
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x407f0c
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 0x409163
cmp dword [ebp + 0x14], eax
je 0x409163
cmp ebx, 0x20
jae 0x409128
mov eax, dword [esp + 0x18]
test esi, esi
je 0x409176
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 0x4090fb
xor eax, eax
cmp edx, dword [ebp + 0x20]
je 0x40915d
mov dword [edi + 0x18], str.incorrect_length_check
jmp 0x407f0c
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 0x4083eb
mov dword [esp + 0x1c], eax
mov ebx, eax
mov dword [ebp + 4], 0x3f50
xor eax, eax
inc eax
jmp 0x409172
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 0x4091c8
cmp edi, dword [esi + 0x10]
je 0x4091ec
cmp dword [ebp + 4], 0x3f51
jge 0x4091ec
cmp dword [ebp + 4], 0x3f4e
jl 0x4091c8
cmp dword [esp + 0x48], 4
je 0x4091ec
mov eax, edi
sub eax, dword [esi + 0x10]
push eax
push dword [esi + 0xc]
push esi
call fcn.0040a10c
add esp, 0xc
test eax, eax
je 0x4091ec
mov dword [ebp + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x4083eb
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 0x409235
test edi, edi
je 0x409235
mov eax, dword [esi + 0xc]
sub eax, edi
push edi
push eax
push dword [ebp + 0x1c]
cmp dword [ebp + 0x14], ebx
je 0x409223
call fcn.00401636
jmp 0x409228
call fcn.004017a3
mov edx, dword [esp + 0x48]
add esp, 0xc
mov dword [ebp + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebp + 4], 0x3f47
je 0x409247
cmp dword [ebp + 4], 0x3f42
jne 0x40924c
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 0x40927e
test edi, edi
je 0x409285
cmp dword [esp + 0x48], 4
jne 0x409296
mov eax, dword [esp + 0x30]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x4083ec
mov eax, dword [esp + 0x30]
jmp 0x4083ec