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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x84
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
sub eax, 1
mov ebx, eax
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 4]
lea eax, [ebx + eax - 5]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov edx, eax
sub edx, dword [esp + 0x9c]
lea ebp, [ebx - 1]
lea eax, [ebp + eax - 0x101]
lea edi, [ebp + edx]
mov dword [esp + 0x14], eax
mov eax, esi
mov esi, dword [esi + 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 0x3c], edi
mov edi, dword [eax + 0x2c]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 0x30]
mov dword [esp + 0x40], edi
mov edi, dword [eax + 0x34]
mov dword [esp + 4], edx
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0x3c]
mov dword [esp + 0x20], edi
mov edi, dword [eax + 0x38]
mov edx, dword [eax + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0x24], edx
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 8]
lea edx, [edx - 1]
mov ecx, dword [ecx + 0x58]
mov dword [esp + 0x18], edx
shl eax, cl
mov ecx, dword [esp + 0x20]
lea edx, [eax - 1]
sub ecx, 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
lea edx, [ecx - 1]
sub eax, 4
shr eax, 2
mov dword [esp + 0x58], edx
add eax, 1
mov dword [esp + 0x5c], eax
shl eax, 2
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x34]
mov eax, ecx
sub ecx, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x28]
add ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xc]
add ecx, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, eax
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov eax, 4
sub eax, ecx
mov dword [esp + 0x60], eax
cmp esi, 0xe
ja 0x4ea5f2
mov ebx, dword [esp]
lea ecx, [esi + 8]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 1]
shl eax, cl
mov ecx, esi
add esi, 0x10
shl edx, cl
add eax, edx
add edi, eax
lea eax, [ebx + 2]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 4]
and eax, edi
lea ecx, [ebx + eax*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr edi, cl
sub esi, ecx
movzx ecx, dl
test ecx, ecx
je 0x4ea67b
test dl, 0x10
jne 0x4ea715
test dl, 0x40
jne 0x4ea9a6
mov dword [esp + 0xc], ebp
mov ebx, 1
mov ebp, dword [esp + 4]
jmp 0x4ea652
test dl, 0x10
jne 0x4ea711
test dl, 0x40
jne 0x4ea9a2
mov edx, ebx
shl edx, cl
sub edx, 1
and edx, edi
add eax, edx
lea ecx, [ebp + eax*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr edi, cl
sub esi, ecx
movzx ecx, dl
test ecx, ecx
jne 0x4ea640
mov ebp, dword [esp + 0xc]
mov byte [ebp + 1], al
add ebp, 1
mov ebx, dword [esp + 0x10]
cmp dword [esp], ebx
jae 0x4ea694
cmp ebp, dword [esp + 0x14]
jb 0x4ea5cc
mov edx, dword [esp]
mov eax, esi
and esi, 7
shr eax, 3
mov ecx, esi
mov esi, dword [esp + 0x98]
sub edx, eax
mov eax, 1
shl eax, cl
lea ebx, [edx + 1]
sub eax, 1
and eax, edi
mov edi, dword [esp + 0x10]
mov dword [esi], ebx
lea ebx, [ebp + 1]
mov dword [esi + 0xc], ebx
mov esi, edi
sub esi, edx
add esi, 5
cmp edi, edx
mov ebx, esi
cmova ebx, esi
mov esi, dword [esp + 0x98]
mov dword [esi + 4], ebx
mov esi, dword [esp + 0x14]
mov ebx, esi
sub ebx, ebp
add ebx, 0x101
cmp ebp, esi
mov esi, dword [esp + 8]
mov edx, ebx
cmovb edx, ebx
mov ebx, dword [esp + 0x98]
mov dword [ebx + 0x10], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0xc]
and edx, 0xf
mov dword [esp + 0x30], eax
je 0x4ea759
movzx eax, dl
cmp eax, esi
mov dword [esp + 0xc], eax
jbe 0x4ea741
mov ebx, dword [esp]
mov ecx, esi
add esi, 8
movzx eax, byte [ebx + 1]
shl eax, cl
add edi, eax
mov eax, ebx
add eax, 1
mov dword [esp], eax
mov ecx, edx
mov eax, 1
sub esi, dword [esp + 0xc]
shl eax, cl
sub eax, 1
and eax, edi
add dword [esp + 0x30], eax
shr edi, cl
cmp esi, 0xe
jbe 0x4ea9c0
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
and eax, edi
jmp 0x4ea787
and edx, 0x40
jne 0x4eaa10
mov edx, 1
shl edx, cl
sub edx, 1
and edx, edi
add eax, edx
lea ecx, [ebx + eax*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr edi, cl
sub esi, ecx
test dl, 0x10
movzx ecx, dl
je 0x4ea770
and edx, 0xf
mov dword [esp + 0xc], eax
movzx eax, dl
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x64], eax
jbe 0x4ea7d3
mov eax, dword [esp]
mov ecx, esi
movzx eax, byte [eax + 1]
shl eax, cl
lea ecx, [esi + 8]
add edi, eax
cmp ebx, ecx
ja 0x4eaa97
add dword [esp], 1
mov esi, ecx
mov ecx, edx
mov eax, 1
sub esi, dword [esp + 0x64]
shl eax, cl
sub eax, 1
and eax, edi
shr edi, cl
mov ebx, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xc]
add eax, ebx
mov ebx, eax
mov dword [esp + 0x68], eax
mov eax, ebp
sub eax, dword [esp + 0x3c]
cmp ebx, eax
jbe 0x4eaa2d
sub ebx, eax
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x64], ebx
jae 0x4ea825
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x1bc0]
test edx, edx
jne 0x4eae20
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4eaab2
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
mov eax, ecx
sub eax, ebx
add eax, dword [esp + 0x28]
cmp edx, ebx
jbe 0x4ea94c
sub edx, ebx
add ecx, 1
mov dword [esp + 0x30], edx
mov edx, ebp
sub edx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
lea ecx, [ebp + 1]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
sub edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add edx, ecx
add edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x2c]
lea edx, [edx + ecx + 5]
add edx, dword [esp + 0x20]
cmp dword [esp + 0x78], edx
lea edx, [ebp + 5]
setae cl
cmp dword [esp + 0x74], edx
setae dl
or edx, ecx
cmp ebx, 9
seta cl
test dl, cl
je 0x4eadaf
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x7c]
mov edx, ecx
sub edx, dword [esp + 0xc]
sub edx, dword [esp + 0x6c]
add edx, dword [esp + 0x20]
or edx, dword [esp + 0x78]
and edx, 3
jne 0x4eadaf
lea edx, [ebx - 4]
mov dword [esp + 0x6c], eax
shr edx, 2
lea ebx, [edx + 1]
xor edx, edx
mov dword [esp + 0xc], ebx
lea ecx, [ebx*4]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
mov eax, dword [eax + edx*4]
mov dword [ebp + edx*4 + 1], eax
add edx, 1
cmp edx, dword [esp + 0xc]
jb 0x4ea8f1
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x6c]
lea edx, [ebp + ecx]
mov ebx, dword [esp + 0x64]
add eax, ecx
sub ebx, ecx
cmp dword [esp + 0x64], ecx
mov dword [esp + 0xc], ebx
je 0x4ea942
movzx ecx, byte [eax + 1]
cmp ebx, 1
mov byte [edx + 1], cl
je 0x4ea942
movzx ecx, byte [eax + 2]
cmp ebx, 2
mov byte [edx + 2], cl
je 0x4ea942
movzx eax, byte [eax + 3]
mov byte [edx + 3], al
add ebp, dword [esp + 0x64]
mov eax, ebp
sub eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x30]
cmp ebx, 2
jbe 0x4ea97b
movzx edx, byte [eax + 1]
add eax, 3
sub ebx, 3
add ebp, 3
mov byte [ebp - 2], dl
movzx edx, byte [eax - 1]
mov byte [ebp - 1], dl
movzx edx, byte [eax]
cmp ebx, 2
mov byte [ebp], dl
ja 0x4ea955
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x4ea681
movzx edx, byte [eax + 1]
cmp ebx, 2
mov byte [ebp + 1], dl
jne 0x4ead9c
movzx eax, byte [eax + 2]
add ebp, 2
mov byte [ebp], al
jmp 0x4ea681
mov ebp, dword [esp + 0xc]
and edx, 0x20
je 0x4ea9f0
mov eax, dword [esp + 8]
mov dword [eax], 0xb
jmp 0x4ea694
mov ebx, dword [esp]
lea ecx, [esi + 8]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 1]
shl eax, cl
mov ecx, esi
add esi, 0x10
shl edx, cl
add eax, edx
add edi, eax
lea eax, [ebx + 2]
mov dword [esp], eax
jmp 0x4ea762
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov eax, dword [esp + 8]
mov dword [eax], 0x1d
jmp 0x4ea694
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_distance_code
mov eax, dword [esp + 8]
mov dword [eax], 0x1d
jmp 0x4ea694
mov eax, ebp
mov dword [esp + 0xc], ebp
sub eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x30]
jmp 0x4eaa46
mov eax, edx
mov dword [esp + 0xc], ebp
movzx edx, byte [eax + 1]
sub ebx, 3
add ebp, 3
mov byte [ebp - 2], dl
movzx edx, byte [eax + 2]
mov byte [ebp - 1], dl
movzx ecx, byte [eax + 3]
cmp ebx, 2
lea edx, [eax + 3]
mov byte [ebp], cl
ja 0x4eaa40
test ebx, ebx
mov ecx, dword [esp + 0xc]
je 0x4ea681
movzx edx, byte [eax + 4]
cmp ebx, 2
lea ebp, [ecx + 4]
mov byte [ecx + 4], dl
jne 0x4ea681
movzx eax, byte [eax + 5]
lea ebp, [ecx + 5]
mov byte [ecx + 5], al
jmp 0x4ea681
mov ebx, dword [esp]
add esi, 0x10
movzx eax, byte [ebx + 2]
shl eax, cl
add edi, eax
mov eax, ebx
add eax, 2
mov dword [esp], eax
jmp 0x4ea7d3
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
cmp ecx, eax
jae 0x4eaccd
mov edx, dword [esp + 0x48]
mov ebx, eax
sub ebx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x70], ebx
sub edx, eax
mov eax, dword [esp + 0x28]
add eax, edx
cmp ecx, ebx
jbe 0x4ea94c
sub ecx, ebx
lea edx, [ebp + 1]
mov dword [esp + 0x30], ecx
mov ecx, ebp
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x74], ecx
sub ecx, dword [esp + 0xc]
sub ecx, dword [esp + 0x6c]
add edx, ecx
add edx, dword [esp + 0x20]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x48]
lea edx, [ecx + edx + 5]
add edx, dword [esp + 0x20]
cmp dword [esp + 0x7c], edx
lea edx, [ebp + 5]
setae cl
cmp dword [esp + 0x78], edx
setae dl
or edx, ecx
cmp ebx, 9
seta cl
test dl, cl
je 0x4eadeb
mov edx, dword [esp + 0x4c]
add edx, dword [esp + 0x74]
sub edx, dword [esp + 0xc]
sub edx, dword [esp + 0x6c]
add edx, dword [esp + 0x20]
or edx, dword [esp + 0x7c]
and edx, 3
jne 0x4eadeb
lea edx, [ebx - 4]
mov dword [esp + 0x80], eax
shr edx, 2
lea ebx, [edx + 1]
xor edx, edx
mov dword [esp + 0x7c], ebx
lea ecx, [ebx*4]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
mov eax, dword [eax + edx*4]
mov dword [ebp + edx*4 + 1], eax
add edx, 1
cmp edx, dword [esp + 0x7c]
jb 0x4eab7e
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x80]
lea edx, [ebp + ecx]
mov ebx, dword [esp + 0x70]
add eax, ecx
sub ebx, ecx
cmp dword [esp + 0x70], ecx
mov dword [esp + 0x78], ebx
je 0x4eabd2
movzx ecx, byte [eax + 1]
cmp ebx, 1
mov byte [edx + 1], cl
je 0x4eabd2
movzx ecx, byte [eax + 2]
cmp ebx, 2
mov byte [edx + 2], cl
je 0x4eabd2
movzx eax, byte [eax + 3]
mov byte [edx + 3], al
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
add ecx, ebp
cmp ebx, edx
jae 0x4eada4
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x74]
sub edx, ebx
add eax, dword [esp + 0x6c]
mov dword [esp + 0x30], edx
mov edx, eax
add eax, dword [esp + 0x60]
sub edx, ebx
add edx, ebp
mov dword [esp + 0x70], edx
add eax, ebp
cmp dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
setae dl
add eax, 4
cmp dword [esp + 0x70], eax
setae al
or eax, edx
cmp ebx, 9
seta dl
test al, dl
je 0x4eae04
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
add eax, ebx
mov ebx, dword [esp + 0xc]
sub ebx, eax
mov eax, dword [esp + 0x6c]
add eax, ebx
add eax, ebp
or eax, edx
test al, 3
jne 0x4eae04
cmp dword [esp + 0x58], 2
jbe 0x4eae3d
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x30]
xor eax, eax
mov edx, dword [esp + 0x70]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [esp + 0x5c]
jb 0x4eac6e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
add ecx, eax
cmp dword [esp + 0x1c], eax
je 0x4ea942
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
movzx ebx, byte [eax + 1]
cmp edx, 1
mov byte [ecx + 1], bl
je 0x4ea942
movzx ebx, byte [eax + 2]
cmp edx, 2
mov byte [ecx + 2], bl
je 0x4ea942
movzx eax, byte [eax + 3]
mov byte [ecx + 3], al
jmp 0x4ea942
mov edx, dword [esp + 0x30]
mov ebx, eax
mov eax, ecx
sub eax, ebx
add eax, dword [esp + 0x28]
cmp edx, ebx
jbe 0x4ea94c
sub edx, ebx
add ecx, 1
mov dword [esp + 0x30], edx
mov edx, ebp
sub edx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
lea ecx, [ebp + 1]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
sub edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add edx, ecx
add edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x1c]
lea edx, [edx + ecx + 5]
add edx, dword [esp + 0x20]
cmp dword [esp + 0x78], edx
lea edx, [ebp + 5]
setae cl
cmp dword [esp + 0x74], edx
setae dl
or edx, ecx
cmp ebx, 9
seta cl
test dl, cl
je 0x4eadcd
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x7c]
mov edx, ecx
sub edx, dword [esp + 0xc]
sub edx, dword [esp + 0x6c]
add edx, dword [esp + 0x20]
or edx, dword [esp + 0x78]
and edx, 3
jne 0x4eadcd
lea edx, [ebx - 4]
mov dword [esp + 0x6c], eax
shr edx, 2
lea ebx, [edx + 1]
xor edx, edx
mov dword [esp + 0xc], ebx
lea ecx, [ebx*4]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
mov eax, dword [eax + edx*4]
mov dword [ebp + edx*4 + 1], eax
add edx, 1
cmp edx, dword [esp + 0xc]
jb 0x4ead83
jmp 0x4ea905
add ebp, 1
jmp 0x4ea681
mov eax, dword [esp + 0x28]
mov ebp, ecx
jmp 0x4ea94c
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x2c]
mov edx, ebp
add eax, 1
movzx ebx, byte [eax]
add edx, 1
cmp ecx, eax
mov byte [edx], bl
jne 0x4eadb9
jmp 0x4ea942
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x1c]
mov edx, ebp
add eax, 1
movzx ebx, byte [eax]
add edx, 1
cmp eax, ecx
mov byte [edx], bl
jne 0x4eadd7
jmp 0x4ea942
lea ecx, [eax + ebx]
mov edx, ebp
add eax, 1
movzx ebx, byte [eax]
add edx, 1
cmp ecx, eax
mov byte [edx], bl
jne 0x4eadf0
jmp 0x4eabd2
mov edx, dword [esp + 0x20]
xor eax, eax
movzx ebx, byte [edx + eax]
mov byte [ecx + eax + 1], bl
add eax, 1
cmp eax, dword [esp + 0x1c]
jne 0x4eae0a
jmp 0x4ea942
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov eax, dword [esp + 8]
mov dword [eax], 0x1d
jmp 0x4ea694
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
jmp 0x4eaca1