Function at 0x100089f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x20]
mov eax, 0xfffffffa
test ecx, ecx
je 0x10008c54
cmp dword [ebp + 0x24], 0x38
jne 0x10008c54
cmp byte [ecx], 0x31
jne 0x10008c54
mov edi, dword [ebp + 8]
mov eax, 0xfffffffe
test edi, edi
je 0x10008c54
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x18], 0
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x10008c54
cmp dword [edi + 0x24], 0
je 0x10008c54
mov dword [ebp - 0x14], esi
cmp edx, 0xffffffff
mov esi, 6
cmovne esi, edx
test ebx, ebx
mov dword [ebp - 0x18], esi
js 0x10008a81
cmp ebx, 0x10
jb 0x10008aa1
add ebx, 0xfffffff0
mov esi, 2
jmp 0x10008a8e
cmp ebx, 0xfffffff1
jb 0x10008c54
neg ebx
xor esi, esi
mov dl, 1
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 4
jbe 0x10008ab9
jmp 0x10008c54
mov edx, esi
mov esi, 1
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x20], 4
ja 0x10008c54
cmp edx, 9
ja 0x10008c54
cmp dword [ebp - 0x14], 8
jne 0x10008c54
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff6
cmp edx, 0xfffffff7
jb 0x10008c54
cmp ebx, 8
jb 0x10008c54
cmp ebx, 0xf
ja 0x10008c54
cmp ebx, 8
sete dl
test byte [ebp - 0x10], dl
jne 0x10008c54
push 0x16c4
push 1
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov esi, eax
mov eax, 0xfffffffc
test esi, esi
je 0x10008c54
cmp ebx, 8
mov ecx, 9
cmovne ecx, ebx
mov dword [edi + 0x1c], esi
mov dword [esi], edi
mov dword [esi + 4], 0x2a
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, 1
shl eax, cl
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], ecx
mov dword [esi + 0x2c], eax
lea ecx, [eax - 1]
mov dword [esi + 0x34], ecx
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebx + 7]
mov dword [esi + 0x50], ecx
mov edx, 0x80
mov ecx, ebx
shl edx, cl
mov dword [esi + 0x4c], edx
dec edx
mov dword [esi + 0x54], edx
add cl, 9
movzx ecx, cl
imul ecx, ecx, 0xab
shr ecx, 9
mov dword [esi + 0x58], ecx
push 2
push eax
push dword [edi + 0x28]
call dword [edi + 0x20]
add esp, 0xc
mov dword [esi + 0x38], eax
push 2
push dword [esi + 0x2c]
push dword [edi + 0x28]
call dword [edi + 0x20]
add esp, 0xc
mov dword [esi + 0x40], eax
push 2
push dword [esi + 0x4c]
push dword [edi + 0x28]
call dword [edi + 0x20]
add esp, 0xc
mov dword [esi + 0x44], eax
mov dword [esi + 0x16c0], 0
mov eax, 0x40
mov ecx, ebx
shl eax, cl
mov dword [esi + 0x169c], eax
push 4
push eax
push dword [edi + 0x28]
call dword [edi + 0x20]
add esp, 0xc
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x169c]
lea edx, [ecx*4]
mov dword [esi + 0xc], edx
cmp dword [esi + 0x38], 0
je 0x10008c34
cmp dword [esi + 0x40], 0
je 0x10008c34
cmp dword [esi + 0x44], 0
je 0x10008c34
test eax, eax
je 0x10008c34
add eax, ecx
mov dword [esi + 0x1698], eax
lea eax, [ecx + ecx*2]
add eax, 0xfffffffd
mov dword [esi + 0x16a4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x84], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x88], eax
mov byte [esi + 0x24], 8
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.deflateReset
mov dword [esi + 4], 0x29a
mov eax, dword [0x10013e80]
mov eax, dword [eax + 0x18]
mov dword [edi + 0x18], eax
push edi
call dbg.deflateEnd
add esp, 4
mov eax, 0xfffffffc
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret