Function at 0x3009a7e8
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 0x3009bc4a
mov edi, dword [edx + 0x1c]
test edi, edi
je 0x3009bc4a
cmp dword [edx + 0xc], 0
je 0x3009bc4a
cmp dword [edx], 0
jne 0x3009a81e
cmp dword [edx + 4], 0
jne 0x3009bc4a
cmp dword [edi], 0xb
jne 0x3009a829
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.0x3009a873
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 + 0x3009bc58]
cmp dword [edi + 8], 0
jne 0x3009a88b
mov dword [edi], 0xc
jmp 0x3009baee
cmp esi, 0x10
jae 0x3009a8b8
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009a890
test byte [edi + 8], 2
je 0x3009a903
cmp ebx, 0x8b1f
jne 0x3009a903
push 0
push 0
push 0
call fcn.3009a580
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.3009a580
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 0x3009baee
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x10], 0
je 0x3009a918
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x3009a9ba
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 0x3009a9ba
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x3009a958
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x3000d864
mov eax, dword [ebp - 8]
jmp 0x3009bae8
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 0x3009a980
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x18], 0x3000d850
jmp 0x3009bae8
mov edx, 1
push 0
shl edx, cl
push 0
push 0
mov dword [edi + 0x14], edx
call fcn.3009e040
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 0x3009baee
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x18], 0x3000d838
jmp 0x3009bae8
cmp esi, 0x10
jae 0x3009a9f9
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009a9d1
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x3009aa10
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d864
jmp 0x3009bae8
test ebx, 0xe000
je 0x3009aa27
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d81c
jmp 0x3009bae8
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009aa38
mov edx, ebx
shr edx, 8
and edx, 1
mov dword [ecx], edx
test dword [edi + 0x10], 0x200
je 0x3009aa5f
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.3009a580
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x3009aa70
cmp esi, 0x20
jae 0x3009aa95
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009aa70
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009aa9f
mov dword [ecx + 4], ebx
test dword [edi + 0x10], 0x200
je 0x3009aad6
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.3009a580
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x3009aae7
cmp esi, 0x10
jae 0x3009ab0c
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009aae7
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009ab29
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 0x3009ab50
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.3009a580
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 0x3009abcd
cmp esi, 0x10
jae 0x3009ab90
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009ab6b
mov ecx, dword [edi + 0x20]
test ecx, ecx
mov dword [edi + 0x40], ebx
je 0x3009ab9d
mov dword [ecx + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x3009abc4
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.3009a580
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x3009abdb
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009abdb
mov dword [ecx + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x3009ac83
mov ecx, dword [edi + 0x40]
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jbe 0x3009ac00
mov ecx, edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x3009ac79
mov edx, dword [edi + 0x20]
test edx, edx
je 0x3009ac4b
mov edx, dword [edx + 0x10]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3009ac4b
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 0x3009ac2f
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 0x3009ac6e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.3009a580
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 0x3009bb49
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x3009ad24
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009acdf
mov edx, dword [ecx + 0x1c]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3009acdf
mov edx, dword [edi + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x3009acdf
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x1c]
mov byte [edx + eax], cl
add dword [edi + 0x40], 1
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
je 0x3009aced
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x3009aca9
test dword [edi + 0x10], 0x200
je 0x3009ad0d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.3009a580
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 0x3009bb49
jmp 0x3009ad32
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009ad32
mov dword [ecx + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x3009add3
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009ad8e
mov edx, dword [ecx + 0x24]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3009ad8e
mov edx, dword [edi + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x3009ad8e
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x1c]
mov byte [edx + eax], cl
add dword [edi + 0x40], 1
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
je 0x3009ad9c
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x3009ad58
test dword [edi + 0x10], 0x200
je 0x3009adbc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.3009a580
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 0x3009bb49
jmp 0x3009ade1
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009ade1
mov dword [ecx + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x3009ae3d
cmp esi, 0x10
jae 0x3009ae1f
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009adf7
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x3009ae36
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d808
jmp 0x3009bae8
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x3009ae5a
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.3009a580
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 0x3009baee
cmp esi, 0x20
jae 0x3009aeab
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009ae83
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 0x3009bb07
push 0
push 0
push 0
call fcn.3009e040
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 0x3009bb49
cmp dword [edi + 4], 0
je 0x3009af2a
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x3009baee
cmp esi, 3
jae 0x3009af57
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009af32
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.0x3009af6e
jmp dword [ecx*4 + 0x3009bccc]
shr ebx, 2
mov dword [edi], 0xd
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3009baee
shr ebx, 2
mov dword [edi + 0x4c], 0x3000ce18
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x3000d618
mov dword [edi + 0x58], 5
mov dword [edi], 0x12
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3009baee
shr ebx, 2
mov dword [edi], 0xf
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3009baee
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d7f4
mov dword [edi], 0x1b
shr ebx, 2
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3009baee
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jae 0x3009b026
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009affe
mov edx, ebx
mov ecx, ebx
not edx
and ecx, 0xffff
shr edx, 0x10
cmp ecx, edx
je 0x3009b048
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d7d4
jmp 0x3009bae8
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 0x3009b6c6
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x3009b072
mov ecx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jbe 0x3009b07e
mov ecx, edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x3009bb49
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 0x3009baee
cmp esi, 0xe
jae 0x3009b0de
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b0b9
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 0x3009b1ff
cmp edx, 0x1e
ja 0x3009b1ff
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x3009b191
cmp esi, 3
jae 0x3009b166
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b141
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x3000d698]
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 0x3009b13c
mov ecx, 0x13
cmp dword [edi + 0x68], ecx
jae 0x3009b1b9
xor eax, eax
lea esp, [esp]
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x3000d698]
mov word [edi + edx*2 + 0x70], ax
add dword [edi + 0x68], 1
cmp dword [edi + 0x68], ecx
jb 0x3009b1a0
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.3009dbac
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, dword [ebp - 8]
je 0x3009b20e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d7b8
jmp 0x3009bae8
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d794
jmp 0x3009bae8
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 0x3009b44f
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 0x3009b294
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b250
mov edx, ecx
shr edx, 0x10
cmp edx, 0x10
jae 0x3009b2f5
mov edx, ecx
shr edx, 8
movzx edx, dl
cmp esi, edx
jae 0x3009b2d6
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b2ac
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 0x3009b440
mov dx, word [ebp - 0xa]
cmp dx, 0x10
movzx ecx, ch
mov dword [ebp - 0x1c], ecx
jne 0x3009b366
lea edx, [ecx + 2]
cmp esi, edx
jae 0x3009b336
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b30c
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
test ecx, ecx
mov dword [ebp - 0x10], ebx
je 0x3009b4a0
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 0x3009b408
cmp dx, 0x11
jne 0x3009b3b4
lea edx, [ecx + 3]
cmp esi, edx
jae 0x3009b39d
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b373
shr ebx, cl
mov edx, ebx
and edx, 7
add edx, 3
mov dword [ebp - 0xc], edx
shr ebx, 3
mov edx, 0xfffffffd
jmp 0x3009b3fa
lea edx, [ecx + 7]
cmp esi, edx
jae 0x3009b3e5
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b3bb
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 0x3009b4af
cmp dword [ebp - 0xc], 0
je 0x3009b440
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 0x3009b42a
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp dword [edi + 0x68], ecx
jb 0x3009b22c
cmp dword [edi], 0x1b
je 0x3009baee
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.3009dbac
test eax, eax
mov dword [ebp - 0x28], eax
je 0x3009b4be
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x18], 0x3000d778
jmp 0x3009bae8
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d75c
jmp 0x3009bae8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d75c
jmp 0x3009bae8
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.3009dbac
test eax, eax
mov dword [ebp - 0x28], eax
je 0x3009b505
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x3000d744
mov eax, dword [ebp - 8]
jmp 0x3009bae8
mov eax, dword [ebp - 8]
mov dword [edi], 0x12
cmp dword [ebp - 4], 6
jb 0x3009b571
cmp dword [ebp - 0x14], 0x102
jb 0x3009b571
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.3009d73f
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 0x3009baee
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 0x3009b5d9
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b595
test dl, dl
je 0x3009b698
test dl, 0xf0
jne 0x3009b698
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 0x3009b68d
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b635
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 0x3009b6c1
mov dword [edi], 0x17
jmp 0x3009baee
test dl, 0x20
je 0x3009b6d1
mov dword [edi], 0xb
jmp 0x3009baee
test dl, 0x40
je 0x3009b6e5
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d728
jmp 0x3009bae8
and edx, 0xf
mov dword [edi + 0x48], edx
mov dword [edi], 0x13
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x3009b737
cmp esi, ecx
jae 0x3009b721
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b6fc
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 0x3009b7a5
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b761
test dl, 0xf0
jne 0x3009b85a
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 0x3009b84f
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b7f7
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 0x3009b880
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d710
jmp 0x3009bae8
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 0x3009b8dd
cmp esi, ecx
jae 0x3009b8c4
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b89f
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 0x3009b8fa
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d6f0
jmp 0x3009bae8
mov dword [edi], 0x16
cmp dword [ebp - 0x14], 0
je 0x3009bb49
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x44]
cmp ecx, edx
jbe 0x3009b94e
sub ecx, edx
mov edx, dword [edi + 0x30]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jbe 0x3009b932
sub ecx, edx
mov edx, dword [edi + 0x34]
add edx, dword [edi + 0x28]
mov dword [ebp - 0xc], ecx
sub edx, ecx
jmp 0x3009b93d
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 0x3009b95f
mov ecx, edx
jmp 0x3009b95c
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 0x3009b96b
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 0x3009b97b
cmp dword [edi + 0x40], 0
jne 0x3009baee
mov dword [edi], 0x12
jmp 0x3009baee
cmp dword [ebp - 0x14], 0
je 0x3009bb49
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 0x3009baee
cmp dword [edi + 8], 0
je 0x3009ba8f
cmp esi, 0x20
jae 0x3009ba0a
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009b9e2
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 0x3009ba4b
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 0x3009ba3a
call fcn.3009a580
jmp 0x3009ba3f
call fcn.3009e040
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 0x3009ba77
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 0x3009ba88
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d6d8
jmp 0x3009bae8
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x3009bb33
cmp dword [edi + 0x10], 0
je 0x3009bb33
cmp esi, 0x20
jae 0x3009bad9
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x3009bb49
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 0x3009bab1
cmp ebx, dword [edi + 0x1c]
je 0x3009bb2f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d6c0
mov dword [edi], 0x1b
mov ecx, dword [edi]
cmp ecx, 0x1c
jbe 0x3009a870
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 0x3009bb49
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 0x3009bb7c
cmp dword [edi], 0x18
jge 0x3009bb9f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x10]
je 0x3009bb9f
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
call fcn.3009a6eb
test eax, eax
je 0x3009bb9f
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 0x3009bbf4
test ebx, ebx
je 0x3009bbf4
cmp dword [edi + 0x10], 0
push ebx
je 0x3009bbdc
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
sub eax, ebx
push eax
push ecx
call fcn.3009a580
jmp 0x3009bbeb
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0x18]
sub edx, ebx
push edx
push eax
call fcn.3009e040
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 0x3009bc1f
test ebx, ebx
je 0x3009bc25
cmp dword [ebp + 0xc], 4
jne 0x3009bc3e
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x3009a867
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