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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x30
test edx, edx
push edi
je 0x3016c724
mov edi, dword [edx + 0x1c]
test edi, edi
je 0x3016c724
cmp dword [edx + 0xc], 0
je 0x3016c724
cmp dword [edx], 0
jne 0x3016b2f8
cmp dword [edx + 4], 0
jne 0x3016c724
cmp dword [edi], 0xb
jne 0x3016b303
mov dword [edi], 0xc
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x14]
push ebx
mov ebx, dword [edi + 0x38]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi]
cmp ecx, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [edx]
push esi
mov esi, dword [edi + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], 0
jbe switch.0x3016b34d
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
jmp dword [ecx*4 + 0x3016c730]
cmp dword [edi + 8], 0
jne 0x3016b365
mov dword [edi], 0xc
jmp 0x3016c5c8
cmp esi, 0x10
jae 0x3016b392
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x10
mov dword [ebp - 0x10], ebx
jb 0x3016b36a
test byte [edi + 8], 2
je 0x3016b3dd
cmp ebx, 0x8b1f
jne 0x3016b3dd
push 0
push 0
push 0
call fcn.3016ca8d
mov dword [edi + 0x18], eax
push 2
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], 0x1f
mov byte [ebp - 0x17], 0x8b
mov ecx, dword [edi + 0x18]
push eax
push ecx
call fcn.3016ca8d
xor ebx, ebx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [edi], 1
jmp 0x3016c5c8
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x10], 0
je 0x3016b3f2
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x3016b494
movzx eax, bl
shl eax, 8
mov edx, ebx
shr edx, 8
add eax, edx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x3016b494
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x3016b432
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x300273ec
mov eax, dword [ebp - 8]
jmp 0x3016c5c2
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x24]
mov dword [ebp - 0x10], ebx
jbe 0x3016b45a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x18], 0x300273d8
jmp 0x3016c5c2
mov edx, 1
push 0
shl edx, cl
push 0
push 0
mov dword [edi + 0x14], edx
call fcn.3016cf19
mov ecx, dword [ebp + 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [edi], ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x3016c5c8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x18], 0x300273c0
jmp 0x3016c5c2
cmp esi, 0x10
jae 0x3016b4d3
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x10
mov dword [ebp - 0x10], ebx
jb 0x3016b4ab
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x3016b4ea
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x300273ec
jmp 0x3016c5c2
test ebx, 0xe000
je 0x3016b501
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x300273a4
jmp 0x3016c5c2
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3016b512
mov edx, ebx
shr edx, 8
and edx, 1
mov dword [ecx], edx
test dword [edi + 0x10], 0x200
je 0x3016b539
mov byte [ebp - 0x18], bl
shr ebx, 8
push 2
lea eax, [ebp - 0x18]
mov byte [ebp - 0x17], bl
mov ecx, dword [edi + 0x18]
push eax
push ecx
call fcn.3016ca8d
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x3016b54a
cmp esi, 0x20
jae 0x3016b56f
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
jb 0x3016b54a
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3016b579
mov dword [ecx + 4], ebx
test dword [edi + 0x10], 0x200
je 0x3016b5b0
mov byte [ebp - 0x18], bl
mov eax, ebx
mov ecx, ebx
shr eax, 8
shr ecx, 0x10
shr ebx, 0x18
push 4
lea edx, [ebp - 0x18]
mov byte [ebp - 0x17], al
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], bl
mov eax, dword [edi + 0x18]
push edx
push eax
call fcn.3016ca8d
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x3016b5c1
cmp esi, 0x10
jae 0x3016b5e6
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x10
jb 0x3016b5c1
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3016b603
mov edx, ebx
and edx, 0xff
mov dword [ecx + 8], edx
mov edx, dword [edi + 0x20]
mov ecx, ebx
shr ecx, 8
mov dword [edx + 0xc], ecx
test dword [edi + 0x10], 0x200
je 0x3016b62a
mov byte [ebp - 0x18], bl
shr ebx, 8
push 2
lea eax, [ebp - 0x18]
mov byte [ebp - 0x17], bl
mov ecx, dword [edi + 0x18]
push eax
push ecx
call fcn.3016ca8d
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x3016b6a7
cmp esi, 0x10
jae 0x3016b66a
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x10
jb 0x3016b645
mov ecx, dword [edi + 0x20]
test ecx, ecx
mov dword [edi + 0x40], ebx
je 0x3016b677
mov dword [ecx + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x3016b69e
mov byte [ebp - 0x18], bl
shr ebx, 8
push 2
lea eax, [ebp - 0x18]
mov byte [ebp - 0x17], bl
mov ecx, dword [edi + 0x18]
push eax
push ecx
call fcn.3016ca8d
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x3016b6b5
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3016b6b5
mov dword [ecx + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x3016b75d
mov ecx, dword [edi + 0x40]
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jbe 0x3016b6da
mov ecx, edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x3016b753
mov edx, dword [edi + 0x20]
test edx, edx
je 0x3016b725
mov edx, dword [edx + 0x10]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3016b725
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x14]
sub eax, dword [edi + 0x40]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x1c], eax
add eax, ecx
cmp eax, edx
jbe 0x3016b709
sub edx, dword [ebp - 0x1c]
mov ecx, edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 8]
push ecx
add edx, eax
push edx
call sub.MSVCR80.dll_memcpy
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x3016b748
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.3016ca8d
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 4], ecx
add eax, ecx
sub dword [edi + 0x40], ecx
mov dword [ebp - 8], eax
cmp dword [edi + 0x40], 0
jne 0x3016c623
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x3016b7fe
cmp dword [ebp - 4], 0
je 0x3016c623
xor ecx, ecx
movzx edx, byte [ecx + eax]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x20]
test ecx, ecx
mov dword [ebp - 0x1c], edx
je 0x3016b7b9
mov edx, dword [ecx + 0x1c]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3016b7b9
mov edx, dword [edi + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x3016b7b9
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x1c]
mov byte [eax + edx], cl
add dword [edi + 0x40], 1
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
je 0x3016b7c7
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x3016b783
test dword [edi + 0x10], 0x200
je 0x3016b7e7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.3016ca8d
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 4], ecx
add eax, ecx
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], eax
jne 0x3016c623
jmp 0x3016b80c
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3016b80c
mov dword [ecx + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x3016b8ad
cmp dword [ebp - 4], 0
je 0x3016c623
xor ecx, ecx
movzx edx, byte [ecx + eax]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x20]
test ecx, ecx
mov dword [ebp - 0x1c], edx
je 0x3016b868
mov edx, dword [ecx + 0x24]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3016b868
mov edx, dword [edi + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x3016b868
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x1c]
mov byte [eax + edx], cl
add dword [edi + 0x40], 1
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
je 0x3016b876
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x3016b832
test dword [edi + 0x10], 0x200
je 0x3016b896
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.3016ca8d
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 4], ecx
add eax, ecx
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], eax
jne 0x3016c623
jmp 0x3016b8bb
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3016b8bb
mov dword [ecx + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x3016b917
cmp esi, 0x10
jae 0x3016b8f9
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x10
mov dword [ebp - 0x10], ebx
jb 0x3016b8d1
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x3016b910
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x30027390
jmp 0x3016c5c2
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x3016b934
mov ecx, dword [edi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [edi + 0x20]
mov dword [edx + 0x30], 1
push 0
push 0
push 0
call fcn.3016ca8d
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [edi], 0xb
jmp 0x3016c5c8
cmp esi, 0x20
jae 0x3016b985
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x3016b95d
mov ecx, ebx
and ecx, 0xff00
mov edx, ebx
shl edx, 0x10
add ecx, edx
xor edx, edx
mov dh, byte [ebp - 0xe]
shl ecx, 8
shr ebx, 0x18
add ecx, edx
mov edx, dword [ebp + 8]
add ecx, ebx
mov dword [edi + 0x18], ecx
mov dword [edx + 0x30], ecx
xor ebx, ebx
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x3016c5e1
push 0
push 0
push 0
call fcn.3016cf19
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [edi], 0xb
cmp dword [ebp + 0xc], 5
je 0x3016c623
cmp dword [edi + 4], 0
je 0x3016ba04
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x3016c5c8
cmp esi, 3
jae 0x3016ba31
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 3
jb 0x3016ba0c
mov ecx, ebx
and ecx, 1
shr ebx, 1
mov dword [edi + 4], ecx
mov ecx, ebx
and ecx, 3
sub esi, 1
cmp ecx, 3
ja case.default.0x3016ba48
jmp dword [ecx*4 + 0x3016c7a4]
shr ebx, 2
mov dword [edi], 0xd
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3016c5c8
shr ebx, 2
mov dword [edi + 0x4c], 0x300269a0
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x300271a0
mov dword [edi + 0x58], 5
mov dword [edi], 0x12
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3016c5c8
shr ebx, 2
mov dword [edi], 0xf
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3016c5c8
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3002737c
mov dword [edi], 0x1b
shr ebx, 2
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3016c5c8
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jae 0x3016bb00
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x3016bad8
mov edx, ebx
mov ecx, ebx
not edx
and ecx, 0xffff
shr edx, 0x10
cmp ecx, edx
je 0x3016bb22
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3002735c
jmp 0x3016c5c2
xor ebx, ebx
mov dword [edi + 0x40], ecx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [edi], 0xe
mov ecx, dword [edi + 0x40]
test ecx, ecx
mov dword [ebp - 0xc], ecx
je 0x3016c1a0
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x3016bb4c
mov ecx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jbe 0x3016bb58
mov ecx, edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x3016c623
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
push edx
push eax
push ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
add esp, 0xc
sub dword [edi + 0x40], eax
mov eax, dword [ebp - 8]
jmp 0x3016c5c8
cmp esi, 0xe
jae 0x3016bbb8
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0xe
jb 0x3016bb93
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov edx, ebx
mov dword [edi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and edx, 0x1f
and ecx, 0xf
add edx, 1
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x64], edx
mov dword [edi + 0x5c], ecx
mov dword [ebp - 0x10], ebx
ja 0x3016bcd9
cmp edx, 0x1e
ja 0x3016bcd9
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x3016bc6b
cmp esi, 3
jae 0x3016bc40
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 3
jb 0x3016bc1b
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x30027220]
movzx ecx, bl
and ecx, 7
mov word [edi + edx*2 + 0x70], cx
add dword [edi + 0x68], 1
mov ecx, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x5c]
mov dword [ebp - 0x10], ebx
jb 0x3016bc16
mov ecx, 0x13
cmp dword [edi + 0x68], ecx
jae 0x3016bc93
xor eax, eax
lea esp, [esp]
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x30027220]
mov word [edi + edx*2 + 0x70], ax
add dword [edi + 0x68], 1
cmp dword [edi + 0x68], ecx
jb 0x3016bc7a
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [edi + 0x70]
push eax
push 0
call fcn.3016abff
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, dword [ebp - 8]
je 0x3016bce8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x30027340
jmp 0x3016c5c2
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3002731c
jmp 0x3016c5c2
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov edx, dword [edi + 0x64]
add edx, dword [edi + 0x60]
cmp dword [edi + 0x68], edx
jae 0x3016bf29
lea ebx, [ebx]
mov ecx, dword [edi + 0x54]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
sub edx, 1
and edx, ebx
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
cmp edx, esi
mov dword [ebp - 0xc], ecx
jbe 0x3016bd6e
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x54]
add eax, 1
add esi, 8
add ebx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 8], eax
sub edx, 1
and edx, ebx
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
cmp edx, esi
mov dword [ebp - 0xc], ecx
ja 0x3016bd2a
mov edx, ecx
shr edx, 0x10
cmp edx, 0x10
jae 0x3016bdcf
mov edx, ecx
shr edx, 8
movzx edx, dl
cmp esi, edx
jae 0x3016bdb0
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0xc]
add eax, 1
add esi, 8
add ebx, edx
movzx edx, ch
cmp esi, edx
mov dword [ebp - 8], eax
jb 0x3016bd86
mov dx, word [ebp - 0xa]
movzx ecx, ch
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
mov word [edi + ecx*2 + 0x70], dx
add dword [edi + 0x68], 1
mov dword [ebp - 0x10], ebx
jmp 0x3016bf1a
mov dx, word [ebp - 0xa]
cmp dx, 0x10
movzx ecx, ch
mov dword [ebp - 0x1c], ecx
jne 0x3016be40
lea edx, [ecx + 2]
cmp esi, edx
jae 0x3016be10
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x1c]
add eax, 1
add esi, 8
add ebx, edx
lea edx, [ecx + 2]
cmp esi, edx
mov dword [ebp - 8], eax
jb 0x3016bde6
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
test ecx, ecx
mov dword [ebp - 0x10], ebx
je 0x3016bf7a
movzx ecx, word [edi + ecx*2 + 0x6e]
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
and ecx, 3
add ecx, 3
shr ebx, 2
mov dword [ebp - 0xc], ecx
sub esi, 2
jmp 0x3016bee2
cmp dx, 0x11
jne 0x3016be8e
lea edx, [ecx + 3]
cmp esi, edx
jae 0x3016be77
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x1c]
add eax, 1
add esi, 8
add ebx, edx
lea edx, [ecx + 3]
cmp esi, edx
mov dword [ebp - 8], eax
jb 0x3016be4d
shr ebx, cl
mov edx, ebx
and edx, 7
add edx, 3
mov dword [ebp - 0xc], edx
shr ebx, 3
mov edx, 0xfffffffd
jmp 0x3016bed4
lea edx, [ecx + 7]
cmp esi, edx
jae 0x3016bebf
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x1c]
add eax, 1
add esi, 8
add ebx, edx
lea edx, [ecx + 7]
cmp esi, edx
mov dword [ebp - 8], eax
jb 0x3016be95
shr ebx, cl
mov edx, ebx
and edx, 0x7f
add edx, 0xb
mov dword [ebp - 0xc], edx
shr ebx, 7
mov edx, 0xfffffff9
sub edx, ecx
mov ecx, dword [ebp - 0xc]
add esi, edx
mov dword [ebp - 0x1c], 0
mov edx, dword [edi + 0x68]
add edx, ecx
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
mov dword [ebp - 0x10], ebx
cmp edx, ecx
ja 0x3016bf89
cmp dword [ebp - 0xc], 0
je 0x3016bf1a
mov ecx, dword [ebp - 0x1c]
lea esp, [esp]
mov edx, dword [edi + 0x68]
sub dword [ebp - 0xc], 1
mov word [edi + edx*2 + 0x70], cx
add dword [edi + 0x68], 1
cmp dword [ebp - 0xc], 0
jne 0x3016bf04
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp dword [edi + 0x68], ecx
jb 0x3016bd06
cmp dword [edi], 0x1b
je 0x3016c5c8
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
mov edx, dword [edi + 0x60]
lea eax, [edi + 0x54]
push eax
push ecx
mov dword [eax], 9
push edx
lea eax, [edi + 0x70]
push eax
push 1
call fcn.3016abff
test eax, eax
mov dword [ebp - 0x28], eax
je 0x3016bf98
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x18], 0x30027300
jmp 0x3016c5c2
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x300272e4
jmp 0x3016c5c2
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x300272e4
jmp 0x3016c5c2
mov edx, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], edx
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x58]
push eax
push ecx
mov ecx, dword [edi + 0x60]
mov dword [eax], 6
mov eax, dword [edi + 0x64]
push eax
lea edx, [edi + ecx*2 + 0x70]
push edx
push 2
call fcn.3016abff
test eax, eax
mov dword [ebp - 0x28], eax
je 0x3016bfdf
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x300272cc
mov eax, dword [ebp - 8]
jmp 0x3016c5c2
mov eax, dword [ebp - 8]
mov dword [edi], 0x12
cmp dword [ebp - 4], 6
jb 0x3016c04b
cmp dword [ebp - 0x14], 0x102
jb 0x3016c04b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 4]
push ecx
mov dword [eax + 4], edx
push eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.3016caac
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x20], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ebx
mov eax, edx
jmp 0x3016c5c8
mov ecx, dword [edi + 0x54]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
sub edx, 1
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [ebp - 0xc], edx
jbe 0x3016c0b3
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x54]
add eax, 1
add esi, 8
add ebx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 8], eax
sub edx, 1
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [ebp - 0xc], edx
ja 0x3016c06f
test dl, dl
je 0x3016c172
test dl, 0xf0
jne 0x3016c172
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x1c], ecx
movzx ecx, dl
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x1c]
sub edx, 1
and edx, ebx
shr edx, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [edi + 0x4c]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
movzx ecx, byte [ebp - 0x2c]
add edx, ecx
cmp edx, esi
jbe 0x3016c167
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x10]
sub dword [ebp - 4], 1
add eax, 1
add ebx, edx
movzx edx, ch
add ecx, edx
mov dword [ebp - 0x1c], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x1c]
add esi, 8
mov dword [ebp - 8], eax
sub edx, 1
and edx, ebx
shr edx, cl
movzx ecx, word [ebp - 0xe]
add edx, ecx
mov ecx, dword [edi + 0x4c]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
add edx, dword [ebp - 0x1c]
cmp edx, esi
ja 0x3016c10f
movzx ecx, byte [ebp - 0xf]
mov edx, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, edx
shr ecx, 0x10
test dl, dl
mov dword [ebp - 0x10], ebx
mov dword [edi + 0x40], ecx
jne 0x3016c19b
mov dword [edi], 0x17
jmp 0x3016c5c8
test dl, 0x20
je 0x3016c1ab
mov dword [edi], 0xb
jmp 0x3016c5c8
test dl, 0x40
je 0x3016c1bf
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x300272b0
jmp 0x3016c5c2
and edx, 0xf
mov dword [edi + 0x48], edx
mov dword [edi], 0x13
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x3016c211
cmp esi, ecx
jae 0x3016c1fb
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, dword [edi + 0x48]
jb 0x3016c1d6
mov ecx, dword [edi + 0x48]
mov edx, 1
shl edx, cl
sub edx, 1
and edx, ebx
add dword [edi + 0x40], edx
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
mov ecx, dword [edi + 0x58]
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x50]
sub edx, 1
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [ebp - 0xc], edx
jbe 0x3016c27f
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x58]
add eax, 1
add esi, 8
add ebx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x50]
mov dword [ebp - 8], eax
sub edx, 1
and edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [ebp - 0xc], edx
ja 0x3016c23b
test dl, 0xf0
jne 0x3016c334
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x1c], ecx
movzx ecx, dl
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x1c]
sub edx, 1
and edx, ebx
shr edx, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [edi + 0x50]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
movzx ecx, byte [ebp - 0x2c]
add edx, ecx
cmp edx, esi
jbe 0x3016c329
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x10]
sub dword [ebp - 4], 1
add eax, 1
add ebx, edx
movzx edx, ch
add ecx, edx
mov dword [ebp - 0x1c], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x1c]
add esi, 8
mov dword [ebp - 8], eax
sub edx, 1
and edx, ebx
shr edx, cl
movzx ecx, word [ebp - 0xe]
add edx, ecx
mov ecx, dword [edi + 0x50]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xc], ecx
shr ecx, 8
movzx edx, cl
add edx, dword [ebp - 0x1c]
cmp edx, esi
ja 0x3016c2d1
movzx ecx, byte [ebp - 0xf]
mov edx, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
test dl, 0x40
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ebx
je 0x3016c35a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x30027298
jmp 0x3016c5c2
mov ecx, edx
shr ecx, 0x10
and edx, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], edx
mov dword [edi], 0x15
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x3016c3b7
cmp esi, ecx
jae 0x3016c39e
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, dword [edi + 0x48]
jb 0x3016c379
mov ecx, dword [edi + 0x48]
mov edx, 1
shl edx, cl
sub edx, 1
and edx, ebx
add dword [edi + 0x44], edx
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi + 0x2c]
sub ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x24]
cmp dword [edi + 0x44], ecx
jbe 0x3016c3d4
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x30027278
jmp 0x3016c5c2
mov dword [edi], 0x16
cmp dword [ebp - 0x14], 0
je 0x3016c623
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x44]
cmp ecx, edx
jbe 0x3016c428
sub ecx, edx
mov edx, dword [edi + 0x30]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jbe 0x3016c40c
sub ecx, edx
mov edx, dword [edi + 0x34]
add edx, dword [edi + 0x28]
mov dword [ebp - 0xc], ecx
sub edx, ecx
jmp 0x3016c417
mov edx, dword [edi + 0x34]
sub edx, ecx
add edx, dword [edi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x40]
cmp ecx, edx
mov dword [ebp - 0x2c], edx
jbe 0x3016c439
mov ecx, edx
jmp 0x3016c436
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jbe 0x3016c445
mov ecx, edx
mov dword [ebp - 0xc], ecx
sub edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x2c]
sub edx, ecx
mov dword [edi + 0x40], edx
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x20]
mov byte [ecx], dl
mov edx, 1
add dword [ebp - 0x1c], edx
add ecx, edx
sub dword [ebp - 0xc], edx
mov dword [ebp - 0x20], ecx
jne 0x3016c455
cmp dword [edi + 0x40], 0
jne 0x3016c5c8
mov dword [edi], 0x12
jmp 0x3016c5c8
cmp dword [ebp - 0x14], 0
je 0x3016c623
mov ecx, dword [ebp - 0x20]
mov dl, byte [edi + 0x40]
mov byte [ecx], dl
add ecx, 1
sub dword [ebp - 0x14], 1
mov dword [ebp - 0x20], ecx
mov dword [edi], 0x12
jmp 0x3016c5c8
cmp dword [edi + 8], 0
je 0x3016c569
cmp esi, 0x20
jae 0x3016c4e4
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x3016c4bc
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add dword [edx + 0x14], ecx
add dword [edi + 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x24], ecx
je 0x3016c525
mov edx, dword [edi + 0x18]
mov eax, ecx
mov ecx, dword [ebp - 0x20]
push eax
sub ecx, eax
cmp dword [edi + 0x10], 0
push ecx
push edx
je 0x3016c514
call fcn.3016ca8d
jmp 0x3016c519
call fcn.3016cf19
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 8]
cmp dword [edi + 0x10], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov ecx, ebx
jne 0x3016c551
and ecx, 0xff00
mov edx, ebx
shl edx, 0x10
add ecx, edx
xor edx, edx
mov dh, byte [ebp - 0xe]
shl ecx, 8
add ecx, edx
mov edx, ebx
shr edx, 0x18
add ecx, edx
cmp ecx, dword [edi + 0x18]
je 0x3016c562
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x30027260
jmp 0x3016c5c2
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x3016c60d
cmp dword [edi + 0x10], 0
je 0x3016c60d
cmp esi, 0x20
jae 0x3016c5b3
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x3016c623
movzx edx, byte [eax]
sub dword [ebp - 4], 1
mov ecx, esi
shl edx, cl
add eax, 1
add esi, 8
mov dword [ebp - 8], eax
add ebx, edx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x3016c58b
cmp ebx, dword [edi + 0x1c]
je 0x3016c609
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x30027248
mov dword [edi], 0x1b
mov ecx, dword [edi]
cmp ecx, 0x1c
jbe 0x3016b34a
pop esi
pop ebx
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [edx + 0x10], ecx
mov dword [edi + 0x3c], esi
pop esi
mov dword [edi + 0x38], ebx
pop ebx
mov eax, 2
pop edi
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1a
mov dword [ebp - 0x28], 1
jmp 0x3016c623
mov dword [ebp - 0x28], 0xfffffffd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 0x10], edx
mov dword [ecx + 4], eax
cmp dword [edi + 0x28], 0
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x3016c656
cmp dword [edi], 0x18
jge 0x3016c679
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x10]
je 0x3016c679
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
call fcn.3016b1c5
test eax, eax
je 0x3016c679
mov dword [edi], 0x1c
pop esi
pop ebx
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 4]
mov ebx, dword [ebp - 0x24]
sub ebx, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], ebx
add dword [edi + 0x1c], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x30], eax
je 0x3016c6ce
test ebx, ebx
je 0x3016c6ce
cmp dword [edi + 0x10], 0
push ebx
je 0x3016c6b6
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
sub eax, ebx
push eax
push ecx
call fcn.3016ca8d
jmp 0x3016c6c5
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0x18]
sub edx, ebx
push edx
push eax
call fcn.3016cf19
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor edx, edx
cmp dword [edi], 0xb
setne dl
sub edx, 1
and edx, 0x80
add ecx, edx
add ecx, dword [edi + 0x3c]
test eax, eax
mov dword [esi + 0x2c], ecx
jne 0x3016c6f9
test ebx, ebx
je 0x3016c6ff
cmp dword [ebp + 0xc], 4
jne 0x3016c718
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x3016b341
pop esi
pop ebx
mov eax, 0xfffffffb
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret 8