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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edi
test edi, edi
je case.default.0x52c7a2
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
test eax, eax
je case.default.0x52c7a2
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x52c750
cmp dword [ecx + 4], ebx
jne case.default.0x52c7a2
mov eax, dword [edi]
cmp eax, 0xb
jne 0x52c762
mov dword [edi], 0xc
mov eax, 0xc
mov edx, dword [ecx + 0x10]
mov ebp, dword [ecx + 4]
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], ecx
cmp eax, 0x1e
ja case.default.0x52c7a2
lea ecx, [edi + 0x54]
mov dword [esp + 0x50], 0x1f
mov dword [esp + 0x48], ecx
mov ecx, eax
jmp dword [eax*4 + 0x52dce4]
mov eax, dword [edi + 8]
test eax, eax
jne 0x52c7bb
mov dword [edi], 0xc
jmp 0x52d1dc
cmp esi, 0x10
jae 0x52c7e6
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x52c7c0
mov eax, dword [edi + 8]
test al, 2
je 0x52c82e
cmp edx, 0x8b1f
jne 0x52c82e
push 0
xor edx, edx
xor ecx, ecx
call fcn.0052ead0
mov dword [edi + 0x18], eax
lea edx, [esp + 0x24]
mov word [esp + 0x24], 0x8b1f
mov ecx, dword [edi + 0x18]
push 2
call fcn.0052ead0
xor edx, edx
mov dword [edi + 0x18], eax
add esp, 8
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [edi], 1
jmp 0x52d1dc
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], 0
test eax, eax
je 0x52c843
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x52c900
movzx ecx, dl
mov eax, edx
shr eax, 8
xor edx, edx
shl ecx, 8
add eax, ecx
div dword [esp + 0x50]
test edx, edx
mov edx, dword [esp + 0x10]
jne 0x52c900
mov eax, edx
and al, 0xf
cmp al, 8
je 0x52c88a
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x52d1dc
mov eax, dword [edi + 0x24]
sub esi, 4
shr edx, 4
mov ecx, edx
mov dword [esp + 0x10], edx
and ecx, 0xf
add ecx, 8
test eax, eax
jne 0x52c8e6
mov dword [edi + 0x24], ecx
mov eax, 1
xor edx, edx
shl eax, cl
xor ecx, ecx
push 0
mov dword [edi + 0x14], eax
call fcn.0052df30
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x18]
shr edx, 8
not edx
mov dword [edi + 0x18], eax
and edx, 2
or edx, 9
mov dword [ecx + 0x30], eax
mov dword [edi], edx
xor edx, edx
mov dword [esp + 0x10], edx
xor esi, esi
jmp 0x52d1dc
cmp ecx, eax
jbe 0x52c8a6
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x52d1dc
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x52d1dc
cmp esi, 0x10
jae 0x52c943
jmp 0x52c920
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x52c920
mov dword [edi + 0x10], edx
cmp dl, 8
jne 0x52c874
test edx, 0xe000
je 0x52c96d
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x52d1dc
mov esi, dword [edi + 0x20]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x52c985
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [edi + 0x10]
test eax, 0x200
je 0x52c9a8
mov byte [esp + 0x20], dl
lea edx, [esp + 0x20]
mov byte [esp + 0x21], cl
mov ecx, dword [edi + 0x18]
push 2
call fcn.0052ead0
add esp, 4
mov dword [edi + 0x18], eax
xor edx, edx
mov dword [edi], 2
mov dword [esp + 0x10], edx
xor esi, esi
jmp 0x52c9c0
cmp esi, 0x20
jae 0x52c9e3
lea ecx, [ecx]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x52c9c0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52c9ed
mov dword [eax + 4], edx
test dword [edi + 0x10], 0x200
je 0x52ca27
mov eax, edx
mov byte [esp + 0x20], dl
shr eax, 8
mov byte [esp + 0x21], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [esp + 0x23], dl
lea edx, [esp + 0x20]
mov byte [esp + 0x22], al
mov ecx, dword [edi + 0x18]
push 4
call fcn.0052ead0
add esp, 4
mov dword [edi + 0x18], eax
xor edx, edx
mov dword [edi], 3
mov dword [esp + 0x10], edx
xor esi, esi
jmp 0x52ca40
cmp esi, 0x10
jae 0x52ca63
lea esp, [esp]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x52ca40
mov esi, dword [edi + 0x20]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x52ca7b
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
test dword [edi + 0x10], 0x200
je 0x52caa0
mov byte [esp + 0x20], dl
lea edx, [esp + 0x20]
mov byte [esp + 0x21], cl
mov ecx, dword [edi + 0x18]
push 2
call fcn.0052ead0
add esp, 4
mov dword [edi + 0x18], eax
xor edx, edx
mov dword [edi], 4
mov dword [esp + 0x10], edx
xor esi, esi
test dword [edi + 0x10], 0x400
je 0x52cb22
cmp esi, 0x10
jae 0x52cae3
lea esp, [esp]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x52cac0
mov eax, dword [edi + 0x20]
mov dword [edi + 0x40], edx
test eax, eax
je 0x52caf0
mov dword [eax + 0x14], edx
test dword [edi + 0x10], 0x200
je 0x52cb18
mov byte [esp + 0x20], dl
shr edx, 8
mov byte [esp + 0x21], dl
lea edx, [esp + 0x20]
mov ecx, dword [edi + 0x18]
push 2
call fcn.0052ead0
add esp, 4
mov dword [edi + 0x18], eax
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
jmp 0x52cb30
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52cb30
mov dword [eax + 0x10], 0
mov dword [edi], 5
mov ecx, dword [edi + 0x10]
test ecx, 0x400
je 0x52cbda
mov edx, dword [edi + 0x40]
mov eax, ebp
cmp edx, ebp
cmovbe eax, edx
mov dword [esp + 0x38], eax
test eax, eax
je 0x52cbd2
cmp dword [edi + 0x20], 0
mov ebx, dword [esp + 0x14]
je 0x52cba7
mov ebx, dword [edi + 0x20]
mov ebx, dword [ebx + 0x10]
test ebx, ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
je 0x52cba7
mov ecx, dword [edi + 0x20]
mov edi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
sub edi, edx
add eax, edi
mov edx, ecx
sub edx, edi
cmp eax, ecx
mov eax, dword [esp + 0x40]
cmovbe edx, dword [esp + 0x38]
add eax, edi
push edx
push ebx
push eax
call fcn.00586300
mov edi, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x10]
test ecx, 0x200
je 0x52cbc0
mov ecx, dword [edi + 0x18]
mov edx, ebx
push eax
call fcn.0052ead0
add esp, 4
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x38]
add ebx, eax
sub ebp, eax
mov dword [esp + 0x14], ebx
sub dword [edi + 0x40], eax
mov edx, dword [edi + 0x40]
test edx, edx
jne 0x52cc6d
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x52ccd5
test ebp, ebp
je 0x52cc6d
xor ecx, ecx
lea ebx, [ebx]
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52cc2f
cmp dword [eax + 0x1c], 0
je 0x52cc2f
mov edx, dword [edi + 0x40]
cmp edx, dword [eax + 0x20]
jae 0x52cc2f
mov eax, dword [eax + 0x1c]
mov ebx, dword [esp + 0x38]
mov byte [eax + edx], bl
inc dword [edi + 0x40]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x52cc3b
cmp ecx, ebp
jb 0x52cc00
test dword [edi + 0x10], 0x200
mov dword [esp + 0x4c], ecx
je 0x52cc61
push ecx
mov ecx, dword [edi + 0x18]
mov edx, ebx
call fcn.0052ead0
mov ecx, dword [esp + 0x50]
add esp, 4
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x38]
add ebx, ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x52cce3
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0xc], eax
cmp dword [ebx + 0x28], 0
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], ebp
mov ebp, dword [esp + 0x2c]
mov dword [ecx], eax
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], esi
jne 0x52ccb3
cmp dword [ebx], 0x1a
jge 0x52dc2b
cmp ebp, dword [esp + 0x1c]
je 0x52dc2b
mov edx, ebp
call fcn.0052c620
test eax, eax
je 0x52dc27
mov dword [ebx], 0x1e
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x44
ret
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52cce3
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x52cd76
test ebp, ebp
je 0x52cc6d
xor ecx, ecx
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52cd32
cmp dword [eax + 0x24], 0
je 0x52cd32
mov edx, dword [edi + 0x40]
cmp edx, dword [eax + 0x28]
jae 0x52cd32
mov eax, dword [eax + 0x24]
mov ebx, dword [esp + 0x38]
mov byte [eax + edx], bl
inc dword [edi + 0x40]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x52cd3e
cmp ecx, ebp
jb 0x52cd03
test dword [edi + 0x10], 0x200
mov dword [esp + 0x4c], ecx
je 0x52cd64
push ecx
mov ecx, dword [edi + 0x18]
mov edx, ebx
call fcn.0052ead0
mov ecx, dword [esp + 0x50]
add esp, 4
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x38]
add ebx, ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x52cc6d
jmp 0x52cd84
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52cd84
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x10]
mov dword [edi], 8
mov ecx, dword [edi + 0x10]
test ecx, 0x200
je 0x52cdec
cmp esi, 0x10
jae 0x52cdc3
mov edi, edi
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x10
jb 0x52cda0
movzx eax, word [edi + 0x18]
cmp edx, eax
je 0x52cde1
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x52d1dc
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x52ce06
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov eax, dword [edi + 0x20]
mov dword [eax + 0x30], 1
push 0
xor edx, edx
xor ecx, ecx
call fcn.0052ead0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 0x18], eax
mov dword [edi], 0xb
mov dword [ecx + 0x30], eax
jmp 0x52d1d8
cmp esi, 0x20
jae 0x52ce53
mov edi, edi
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x52ce30
mov ecx, edx
mov dword [edi], 0xa
mov eax, edx
and ecx, 0xff00
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
shr edx, 0x18
mov ecx, dword [esp + 0x18]
add eax, edx
xor edx, edx
mov dword [edi + 0x18], eax
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [ecx + 0x30], eax
jmp 0x52ce94
mov ecx, dword [esp + 0x18]
cmp dword [edi + 0xc], 0
je 0x52dbd2
push 0
xor edx, edx
xor ecx, ecx
call fcn.0052df30
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov dword [edi], 0xb
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x34]
cmp eax, 5
je 0x52cc6d
cmp eax, 6
je 0x52cc6d
cmp dword [edi + 4], 0
je 0x52cef4
mov ecx, esi
mov dword [edi], 0x1a
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x10], edx
jmp 0x52d1dc
cmp esi, 3
jae 0x52cf23
lea esp, [esp]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 3
jb 0x52cf00
mov eax, edx
shr edx, 1
and eax, 1
mov dword [edi + 4], eax
mov eax, edx
and eax, 3
jmp dword [eax*4 + 0x52dd60]
shr edx, 2
add esi, 0xfffffffd
mov dword [edi], 0xd
mov dword [esp + 0x10], edx
jmp 0x52d1dc
cmp dword [esp + 0x34], 6
mov dword [edi + 0x4c], 0x5e55b0
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x5e5db0
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
jne 0x52cfac
shr edx, 2
add esi, 0xfffffffd
mov dword [esp + 0x10], edx
jmp 0x52cc6d
shr edx, 2
add esi, 0xfffffffd
mov dword [edi], 0x10
mov dword [esp + 0x10], edx
jmp 0x52d1dc
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_block_type
shr edx, 2
add esi, 0xfffffffd
mov dword [esp + 0x10], edx
jmp 0x52d1dc
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x10], edx
cmp esi, 0x20
jae 0x52cff3
lea ecx, [ecx]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x52cfd0
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x52d017
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x52d1dc
xor edx, edx
mov dword [edi + 0x40], ecx
xor esi, esi
mov dword [esp + 0x10], edx
cmp dword [esp + 0x34], 6
mov dword [edi], 0xe
je 0x52dc20
mov dword [edi], 0xf
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x52d75d
cmp ecx, ebp
mov eax, ebp
cmovbe eax, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
cmovbe ecx, eax
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x52cc6d
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
call fcn.00586300
mov eax, dword [esp + 0x58]
add esp, 0xc
sub dword [esp + 0x1c], eax
add ebx, eax
add dword [esp + 0x28], eax
sub ebp, eax
sub dword [edi + 0x40], eax
mov dword [esp + 0x14], ebx
jmp 0x52d1d8
cmp esi, 0xe
jae 0x52d0b3
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0xe
jb 0x52d090
mov ecx, edx
sub esi, 0xe
shr edx, 5
and ecx, 0x1f
mov eax, edx
add ecx, 0x101
and eax, 0x1f
shr edx, 5
inc eax
mov dword [edi + 0x60], ecx
mov dword [esp + 0x4c], eax
mov dword [edi + 0x64], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [esp + 0x10], edx
mov dword [edi + 0x5c], eax
cmp ecx, 0x11e
ja 0x52d1f6
cmp dword [esp + 0x4c], 0x1e
ja 0x52d1f6
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x5c]
jae 0x52d16d
cmp esi, 3
jae 0x52d143
lea ebx, [ebx]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 3
jb 0x52d120
mov eax, dword [edi + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [esp + 0x10], edx
movzx eax, word [eax*2 + 0x5e5e30]
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
mov eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x5c]
jb 0x52d115
cmp eax, 0x13
jae 0x52d18d
mov eax, dword [edi + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x5e5e30]
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], 0x13
jb 0x52d172
lea eax, [edi + 0x530]
mov dword [edi + 0x54], 7
lea ecx, [edi + 0x6c]
mov dword [edi + 0x4c], eax
mov dword [ecx], eax
lea edx, [edi + 0x54]
lea eax, [edi + 0x2f0]
push eax
push edx
push ecx
push 0x13
lea edx, [edi + 0x70]
xor ecx, ecx
call fcn.0052e1a0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x52d209
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov dword [edi], 0x1d
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
mov eax, ecx
cmp eax, 0x1e
jbe switch.0x0052c7a2
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x52d1dc
mov dword [edi + 0x68], 0
mov ecx, 0x12
mov dword [edi], 0x12
mov eax, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
add eax, dword [edi + 0x60]
mov dword [esp + 0x38], edx
cmp edx, eax
jae 0x52d483
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
mov edx, 1
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x3c], eax
cmp ecx, esi
jbe 0x52d2a8
mov edi, edi
test ebp, ebp
je 0x52cc71
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov edx, 1
add edi, eax
inc ebx
mov eax, dword [esp + 0x48]
add esi, 8
dec ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x3c], eax
cmp ecx, esi
ja 0x52d260
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x52d307
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x4c], ecx
cmp esi, ecx
jae 0x52d2e2
test ebp, ebp
je 0x52cc71
movzx edx, byte [ebx]
mov ecx, esi
shl edx, cl
inc ebx
add esi, 8
mov dword [esp + 0x14], ebx
dec ebp
add edi, edx
cmp esi, dword [esp + 0x4c]
jb 0x52d2c2
mov edx, dword [esp + 0x38]
movzx ecx, ah
mov ax, word [esp + 0x3e]
sub esi, ecx
shr edi, cl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov word [ecx + edx*2 + 0x70], ax
inc dword [ecx + 0x68]
jmp 0x52d468
mov cx, word [esp + 0x3e]
mov edx, dword [esp + 0x10]
movzx eax, ah
cmp cx, 0x10
jne 0x52d380
lea edi, [eax + 2]
mov dword [esp + 0x4c], eax
cmp esi, edi
jae 0x52d34a
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, edi
jb 0x52d324
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
mov ecx, eax
sub esi, eax
shr edx, cl
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edx
test eax, eax
je 0x52d4a6
movzx eax, word [edi + eax*2 + 0x6e]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
mov dword [esp + 0x40], eax
sub esi, 2
jmp 0x52d42c
cmp cx, 0x11
jne 0x52d3d1
lea edi, [eax + 3]
mov dword [esp + 0x4c], eax
cmp esi, edi
jae 0x52d3b7
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, edi
jb 0x52d391
mov eax, dword [esp + 0x4c]
mov ecx, eax
mov eax, 0xfffffffd
shr edx, cl
mov ecx, edx
shr edx, 3
and ecx, 7
add ecx, 3
sub eax, dword [esp + 0x4c]
jmp 0x52d41e
lea edi, [eax + 7]
mov dword [esp + 0x4c], eax
cmp esi, edi
jae 0x52d406
lea esp, [esp]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, edi
jb 0x52d3e0
mov eax, dword [esp + 0x4c]
mov ecx, eax
mov eax, 0xfffffff9
shr edx, cl
mov ecx, edx
shr edx, 7
and ecx, 0x7f
add ecx, 0xb
sub eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
add esi, eax
mov dword [esp + 0x40], 0
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
mov dword [esp + 0x3c], ecx
add ecx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
cmp ecx, eax
ja 0x52d4a6
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ebx, [ebx]
mov eax, dword [edi + 0x68]
mov word [edi + eax*2 + 0x70], dx
inc dword [edi + 0x68]
sub ecx, 1
jne 0x52d450
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x64]
mov edx, dword [ecx + 0x68]
add eax, dword [ecx + 0x60]
mov dword [esp + 0x38], edx
cmp edx, eax
jb 0x52d234
mov edi, dword [esp + 0x24]
mov ecx, dword [edi]
cmp ecx, 0x1d
je 0x52d1d8
cmp word [edi + 0x270], 0
jne 0x52d4bc
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
jmp 0x52d1d2
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x52d1dc
lea eax, [edi + 0x530]
mov dword [edi + 0x54], 9
lea ecx, [edi + 0x6c]
mov dword [edi + 0x4c], eax
mov dword [ecx], eax
lea edx, [edi + 0x54]
lea eax, [edi + 0x2f0]
push eax
push edx
push ecx
push dword [edi + 0x60]
lea edx, [edi + 0x70]
mov ecx, 1
call fcn.0052e1a0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x52d50a
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x52d1d2
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], eax
lea edx, [edi + 0x58]
lea eax, [edi + 0x2f0]
mov dword [edx], 6
push eax
mov eax, dword [edi + 0x60]
push edx
add eax, 0x38
push ecx
push dword [edi + 0x64]
mov ecx, 2
lea edx, [edi + eax*2]
call fcn.0052e1a0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x52d558
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x52d1d2
cmp dword [esp + 0x34], 6
mov dword [edi], 0x13
je 0x52cc6d
mov edx, dword [esp + 0x10]
mov dword [edi], 0x14
cmp ebp, 6
jb 0x52d5e7
cmp dword [esp + 0x1c], 0x102
jb 0x52d5e7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov ecx, eax
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [edi + 0x3c], esi
call fcn.0052e670
cmp dword [edi], 0xb
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
jne 0x52d1dc
mov dword [edi + 0x1bc4], 0xffffffff
jmp 0x52d1dc
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x4c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
and eax, edx
mov dword [edi + 0x1bc4], 0
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x52d65a
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x54]
add edx, eax
mov eax, dword [edi + 0x4c]
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov edx, 1
mov dword [esp + 0x14], ebx
shl edx, cl
dec edx
and edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x10]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x52d617
test al, al
je 0x52d722
test al, 0xf0
jne 0x52d722
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [esp + 0x3c], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [esp + 0x40], edx
and ebx, dword [esp + 0x10]
shr ebx, cl
mov ecx, dword [esp + 0x4c]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x3c]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x52d709
test ebp, ebp
je 0x52cc6d
mov ebx, dword [esp + 0x14]
mov ecx, esi
mov edi, 1
add esi, 8
dec ebp
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [esp + 0x10], eax
movzx eax, word [esp + 0x42]
mov dword [esp + 0x14], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x10]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x52d6b2
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
movzx ecx, dh
mov edx, dword [esp + 0x10]
shr edx, cl
sub esi, ecx
mov dword [edi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
sub esi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [edi + 0x40], ecx
test al, al
jne 0x52d74f
mov dword [edi], 0x19
jmp 0x52d1dc
test al, 0x20
je 0x52d768
mov dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x52d1dc
test al, 0x40
je 0x52d782
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x52d1dc
movzx eax, al
and eax, 0xf
mov dword [edi], 0x15
mov dword [edi + 0x48], eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x52d7e0
cmp esi, ecx
jae 0x52d7c5
lea esp, [esp]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x48]
add edx, eax
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov dword [esp + 0x14], ebx
cmp esi, ecx
jb 0x52d7a0
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [edi + 0x40], eax
add dword [edi + 0x1bc4], ecx
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x40]
mov dword [edi + 0x1bc8], eax
mov dword [edi], 0x16
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x4c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x52d858
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x58]
add edx, eax
mov eax, dword [edi + 0x50]
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov edx, 1
mov dword [esp + 0x14], ebx
shl edx, cl
dec edx
and edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x10]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x52d815
test al, 0xf0
jne 0x52d914
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [esp + 0x3c], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [esp + 0x40], edx
and ebx, dword [esp + 0x10]
shr ebx, cl
mov ecx, dword [esp + 0x4c]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x3c]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x52d8ff
test ebp, ebp
je 0x52cc6d
mov ebx, dword [esp + 0x14]
mov ecx, esi
mov edi, 1
add esi, 8
dec ebp
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [esp + 0x10], eax
movzx eax, word [esp + 0x42]
mov dword [esp + 0x14], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x10]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x52d8a8
mov edi, dword [esp + 0x24]
movzx ecx, dh
mov edx, dword [esp + 0x10]
sub esi, ecx
shr edx, cl
add dword [edi + 0x1bc4], ecx
mov ebx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
sub esi, ecx
shr edx, cl
mov dword [esp + 0x10], edx
test al, 0x40
je 0x52d948
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x52d1dc
mov ecx, eax
mov dword [edi], 0x17
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x52d9b0
cmp esi, ecx
jae 0x52d995
lea ebx, [ebx]
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [edi + 0x48]
add edx, eax
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
mov dword [esp + 0x14], ebx
cmp esi, ecx
jb 0x52d970
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [edi + 0x44], eax
add dword [edi + 0x1bc4], ecx
mov dword [esp + 0x10], edx
mov dword [edi], 0x18
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x52cc6d
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [edi + 0x44]
cmp ecx, eax
jbe 0x52da23
sub ecx, eax
cmp ecx, dword [edi + 0x2c]
jbe 0x52d9f5
cmp dword [edi + 0x1bc0], 0
je 0x52d9f5
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x52d1dc
mov ebx, dword [edi + 0x30]
cmp ecx, ebx
jbe 0x52da08
mov eax, dword [edi + 0x28]
sub ecx, ebx
sub eax, ecx
add eax, dword [edi + 0x34]
jmp 0x52da0f
mov eax, dword [edi + 0x34]
sub eax, ecx
add eax, ebx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x40]
cmp ecx, eax
mov ebx, eax
cmovbe ebx, ecx
mov dword [esp + 0x4c], ebx
jmp 0x52da34
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
cmp ebx, ecx
cmovbe ecx, ebx
mov ebx, dword [esp + 0x40]
sub dword [esp + 0x1c], ecx
sub eax, ecx
mov dword [edi + 0x40], eax
mov edi, dword [esp + 0x28]
sub ebx, edi
mov al, byte [ebx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x52da54
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x40], ecx
jne 0x52d1dc
mov dword [edi], 0x14
jmp 0x52d1dc
cmp dword [esp + 0x1c], 0
je 0x52cc6d
mov ecx, dword [esp + 0x28]
mov al, byte [edi + 0x40]
mov byte [ecx], al
inc ecx
dec dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [edi], 0x14
jmp 0x52d1dc
cmp dword [edi + 8], 0
je 0x52db79
cmp esi, 0x20
jae 0x52dad9
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x52dab6
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add dword [edi + 0x1c], ecx
mov dword [esp + 0x2c], ecx
add dword [eax + 0x14], ecx
test ecx, ecx
je 0x52db23
mov edx, dword [esp + 0x28]
push dword [esp + 0x2c]
sub edx, ecx
cmp dword [edi + 0x10], 0
mov ecx, dword [edi + 0x18]
je 0x52db0d
call fcn.0052ead0
jmp 0x52db12
call fcn.0052df30
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov ecx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jne 0x52db56
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
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
cmp ecx, dword [edi + 0x18]
je 0x52db71
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x52d1dc
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [edi], 0x1b
cmp dword [edi + 8], 0
je 0x52dc00
cmp dword [edi + 0x10], 0
je 0x52dc00
cmp esi, 0x20
jae 0x52dbb7
test ebp, ebp
je 0x52cc6d
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add edx, eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x10], edx
dec ebp
cmp esi, 0x20
jb 0x52db94
cmp edx, dword [edi + 0x1c]
je 0x52dbf8
mov eax, dword [esp + 0x18]
mov dword [edi], 0x1d
mov dword [eax + 0x18], str.incorrect_length_check
jmp 0x52d1dc
mov eax, dword [esp + 0x28]
mov dword [edi + 0x3c], esi
mov dword [edi + 0x38], edx
pop edi
pop esi
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], ebp
pop ebp
mov dword [ecx + 0x10], eax
mov eax, 2
mov dword [ecx], ebx
pop ebx
add esp, 0x44
ret
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [edi], 0x1c
mov dword [esp + 0x30], 1
jmp 0x52cc6d
mov dword [esp + 0x30], 0xfffffffd
jmp 0x52cc6d
xor edi, edi
jmp 0x52cc71
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
sub eax, dword [ecx + 4]
sub ebp, dword [ecx + 0x10]
add dword [ecx + 8], eax
add dword [ecx + 0x14], ebp
add dword [ebx + 0x1c], ebp
cmp dword [ebx + 8], 0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x44], eax
je 0x52dc74
test ebp, ebp
je 0x52dc74
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x18]
sub edx, ebp
cmp dword [ebx + 0x10], 0
push ebp
je 0x52dc66
call fcn.0052ead0
jmp 0x52dc6b
call fcn.0052df30
add esp, 4
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov edx, dword [ebx]
cmp edx, 0x13
je 0x52dc84
cmp edx, 0xe
je 0x52dc84
xor esi, esi
jmp 0x52dc89
mov esi, 0x100
mov ecx, dword [ebx + 4]
neg ecx
mov dword [esp + 0x50], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp edx, 0xb
cmove eax, dword [esp + 0x50]
add ecx, esi
add eax, ecx
add eax, dword [ebx + 0x3c]
cmp dword [esp + 0x44], 0
mov dword [edi + 0x2c], eax
jne 0x52dcba
test ebp, ebp
je 0x52dcc1
cmp dword [esp + 0x34], 4
jne 0x52dcd7
mov eax, dword [esp + 0x30]
mov ecx, 0xfffffffb
pop edi
pop esi
test eax, eax
pop ebp
cmove eax, ecx
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret