Function at 0x3009a5c6
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 0x3009ba28
mov edi, dword [edx + 0x1c]
test edi, edi
je 0x3009ba28
cmp dword [edx + 0xc], 0
je 0x3009ba28
cmp dword [edx], 0
jne 0x3009a5fc
cmp dword [edx + 4], 0
jne 0x3009ba28
cmp dword [edi], 0xb
jne 0x3009a607
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.0x3009a651
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 + 0x3009ba38]
cmp dword [edi + 8], 0
jne 0x3009a669
mov dword [edi], 0xc
jmp 0x3009b8cc
cmp esi, 0x10
jae 0x3009a696
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009a66e
test byte [edi + 8], 2
je 0x3009a6e1
cmp ebx, 0x8b1f
jne 0x3009a6e1
push 0
push 0
push 0
call fcn.3009a35e
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.3009a35e
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 0x3009b8cc
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x10], 0
je 0x3009a6f6
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x3009a798
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 0x3009a798
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x3009a736
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x3000d864
mov eax, dword [ebp - 8]
jmp 0x3009b8c6
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 0x3009a75e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x18], 0x3000d850
jmp 0x3009b8c6
mov edx, 1
push 0
shl edx, cl
push 0
push 0
mov dword [edi + 0x14], edx
call fcn.3009de20
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 0x3009b8cc
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x18], 0x3000d838
jmp 0x3009b8c6
cmp esi, 0x10
jae 0x3009a7d7
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009a7af
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x3009a7ee
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d864
jmp 0x3009b8c6
test ebx, 0xe000
je 0x3009a805
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d81c
jmp 0x3009b8c6
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009a816
mov edx, ebx
shr edx, 8
and edx, 1
mov dword [ecx], edx
test dword [edi + 0x10], 0x200
je 0x3009a83d
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.3009a35e
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x3009a84e
cmp esi, 0x20
jae 0x3009a873
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009a84e
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009a87d
mov dword [ecx + 4], ebx
test dword [edi + 0x10], 0x200
je 0x3009a8b4
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.3009a35e
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x3009a8c5
cmp esi, 0x10
jae 0x3009a8ea
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009a8c5
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009a907
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 0x3009a92e
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.3009a35e
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 0x3009a9ab
cmp esi, 0x10
jae 0x3009a96e
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009a949
mov ecx, dword [edi + 0x20]
test ecx, ecx
mov dword [edi + 0x40], ebx
je 0x3009a97b
mov dword [ecx + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x3009a9a2
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.3009a35e
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x3009a9b9
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009a9b9
mov dword [ecx + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x3009aa61
mov ecx, dword [edi + 0x40]
mov edx, dword [ebp - 4]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jbe 0x3009a9de
mov ecx, edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x3009aa57
mov edx, dword [edi + 0x20]
test edx, edx
je 0x3009aa29
mov edx, dword [edx + 0x10]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3009aa29
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 0x3009aa0d
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 0x3009aa4c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.3009a35e
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 0x3009b927
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x3009ab02
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009aabd
mov edx, dword [ecx + 0x1c]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3009aabd
mov edx, dword [edi + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x3009aabd
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 0x3009aacb
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x3009aa87
test dword [edi + 0x10], 0x200
je 0x3009aaeb
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.3009a35e
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 0x3009b927
jmp 0x3009ab10
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009ab10
mov dword [ecx + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x3009abb1
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009ab6c
mov edx, dword [ecx + 0x24]
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x3009ab6c
mov edx, dword [edi + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x3009ab6c
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 0x3009ab7a
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x3009ab36
test dword [edi + 0x10], 0x200
je 0x3009ab9a
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
call fcn.3009a35e
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 0x3009b927
jmp 0x3009abbf
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x3009abbf
mov dword [ecx + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x3009ac1b
cmp esi, 0x10
jae 0x3009abfd
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009abd5
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x3009ac14
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d808
jmp 0x3009b8c6
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x3009ac38
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.3009a35e
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 0x3009b8cc
cmp esi, 0x20
jae 0x3009ac89
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009ac61
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 0x3009b8e5
push 0
push 0
push 0
call fcn.3009de20
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 0x3009b927
cmp dword [edi + 4], 0
je 0x3009ad08
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x3009b8cc
cmp esi, 3
jae 0x3009ad35
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009ad10
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.0x3009ad4c
jmp dword [ecx*4 + 0x3009baac]
shr ebx, 2
mov dword [edi], 0xd
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3009b8cc
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 0x3009b8cc
shr ebx, 2
mov dword [edi], 0xf
mov dword [ebp - 0x10], ebx
sub esi, 2
jmp 0x3009b8cc
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 0x3009b8cc
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [ebp - 0x10], ebx
jae 0x3009ae04
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009addc
mov edx, ebx
mov ecx, ebx
not edx
and ecx, 0xffff
shr edx, 0x10
cmp ecx, edx
je 0x3009ae26
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d7d4
jmp 0x3009b8c6
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 0x3009b4a4
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x3009ae50
mov ecx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jbe 0x3009ae5c
mov ecx, edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x3009b927
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 0x3009b8cc
cmp esi, 0xe
jae 0x3009aebc
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009ae97
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 0x3009afdd
cmp edx, 0x1e
ja 0x3009afdd
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x3009af6f
cmp esi, 3
jae 0x3009af44
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009af1f
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 0x3009af1a
mov ecx, 0x13
cmp dword [edi + 0x68], ecx
jae 0x3009af97
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 0x3009af7e
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.3009d98c
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, dword [ebp - 8]
je 0x3009afec
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d7b8
jmp 0x3009b8c6
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d794
jmp 0x3009b8c6
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 0x3009b22d
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 0x3009b072
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b02e
mov edx, ecx
shr edx, 0x10
cmp edx, 0x10
jae 0x3009b0d3
mov edx, ecx
shr edx, 8
movzx edx, dl
cmp esi, edx
jae 0x3009b0b4
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b08a
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 0x3009b21e
mov dx, word [ebp - 0xa]
cmp dx, 0x10
movzx ecx, ch
mov dword [ebp - 0x1c], ecx
jne 0x3009b144
lea edx, [ecx + 2]
cmp esi, edx
jae 0x3009b114
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b0ea
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
test ecx, ecx
mov dword [ebp - 0x10], ebx
je 0x3009b27e
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 0x3009b1e6
cmp dx, 0x11
jne 0x3009b192
lea edx, [ecx + 3]
cmp esi, edx
jae 0x3009b17b
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b151
shr ebx, cl
mov edx, ebx
and edx, 7
add edx, 3
mov dword [ebp - 0xc], edx
shr ebx, 3
mov edx, 0xfffffffd
jmp 0x3009b1d8
lea edx, [ecx + 7]
cmp esi, edx
jae 0x3009b1c3
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b199
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 0x3009b28d
cmp dword [ebp - 0xc], 0
je 0x3009b21e
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 0x3009b208
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp dword [edi + 0x68], ecx
jb 0x3009b00a
cmp dword [edi], 0x1b
je 0x3009b8cc
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.3009d98c
test eax, eax
mov dword [ebp - 0x28], eax
je 0x3009b29c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x18], 0x3000d778
jmp 0x3009b8c6
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d75c
jmp 0x3009b8c6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d75c
jmp 0x3009b8c6
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.3009d98c
test eax, eax
mov dword [ebp - 0x28], eax
je 0x3009b2e3
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x3000d744
mov eax, dword [ebp - 8]
jmp 0x3009b8c6
mov eax, dword [ebp - 8]
mov dword [edi], 0x12
cmp dword [ebp - 4], 6
jb 0x3009b34f
cmp dword [ebp - 0x14], 0x102
jb 0x3009b34f
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.3009d51f
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 0x3009b8cc
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 0x3009b3b7
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b373
test dl, dl
je 0x3009b476
test dl, 0xf0
jne 0x3009b476
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 0x3009b46b
mov edi, edi
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b413
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 0x3009b49f
mov dword [edi], 0x17
jmp 0x3009b8cc
test dl, 0x20
je 0x3009b4af
mov dword [edi], 0xb
jmp 0x3009b8cc
test dl, 0x40
je 0x3009b4c3
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d728
jmp 0x3009b8c6
and edx, 0xf
mov dword [edi + 0x48], edx
mov dword [edi], 0x13
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x3009b515
cmp esi, ecx
jae 0x3009b4ff
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b4da
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 0x3009b583
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b53f
test dl, 0xf0
jne 0x3009b638
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 0x3009b62d
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b5d5
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 0x3009b65e
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d710
jmp 0x3009b8c6
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 0x3009b6bb
cmp esi, ecx
jae 0x3009b6a2
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b67d
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 0x3009b6d8
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x3000d6f0
jmp 0x3009b8c6
mov dword [edi], 0x16
cmp dword [ebp - 0x14], 0
je 0x3009b927
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x44]
cmp ecx, edx
jbe 0x3009b72c
sub ecx, edx
mov edx, dword [edi + 0x30]
cmp ecx, edx
mov dword [ebp - 0xc], ecx
jbe 0x3009b710
sub ecx, edx
mov edx, dword [edi + 0x34]
add edx, dword [edi + 0x28]
mov dword [ebp - 0xc], ecx
sub edx, ecx
jmp 0x3009b71b
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 0x3009b73d
mov ecx, edx
jmp 0x3009b73a
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 0x3009b749
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 0x3009b759
cmp dword [edi + 0x40], 0
jne 0x3009b8cc
mov dword [edi], 0x12
jmp 0x3009b8cc
cmp dword [ebp - 0x14], 0
je 0x3009b927
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 0x3009b8cc
cmp dword [edi + 8], 0
je 0x3009b86d
cmp esi, 0x20
jae 0x3009b7e8
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b7c0
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 0x3009b829
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 0x3009b818
call fcn.3009a35e
jmp 0x3009b81d
call fcn.3009de20
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 0x3009b855
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 0x3009b866
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d6d8
jmp 0x3009b8c6
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x3009b911
cmp dword [edi + 0x10], 0
je 0x3009b911
cmp esi, 0x20
jae 0x3009b8b7
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x3009b927
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 0x3009b88f
cmp ebx, dword [edi + 0x1c]
je 0x3009b90d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x3000d6c0
mov dword [edi], 0x1b
mov ecx, dword [edi]
cmp ecx, 0x1c
jbe 0x3009a64e
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 0x3009b927
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 0x3009b95a
cmp dword [edi], 0x18
jge 0x3009b97d
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x10]
je 0x3009b97d
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
call fcn.3009a4c9
test eax, eax
je 0x3009b97d
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 0x3009b9d2
test ebx, ebx
je 0x3009b9d2
cmp dword [edi + 0x10], 0
push ebx
je 0x3009b9ba
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
sub eax, ebx
push eax
push ecx
call fcn.3009a35e
jmp 0x3009b9c9
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0x18]
sub edx, ebx
push edx
push eax
call fcn.3009de20
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 0x3009b9fd
test ebx, ebx
je 0x3009ba03
cmp dword [ebp + 0xc], 4
jne 0x3009ba1c
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x3009a645
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