Function at 0x4e8440
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 ebx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
mov edi, eax
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 4]
lea eax, [edi + eax - 5]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0xc]
mov esi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x10]
mov edx, eax
lea eax, [esi + eax - 0x101]
sub edx, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
mov eax, ebx
mov ebx, dword [ebx + 0x2c]
mov edi, dword [eax + 0x30]
mov ebp, dword [eax + 0x40]
add edx, esi
mov esi, dword [eax + 0x38]
mov dword [esp + 0x24], ebx
mov ebx, dword [eax + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
mov edi, dword [eax + 0x3c]
mov esi, eax
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
mov dword [esp + 8], ecx
mov ecx, dword [eax + 0x58]
mov eax, 1
mov dword [esp + 0x20], edx
mov edx, eax
shl edx, cl
mov ecx, dword [esi + 0x5c]
mov esi, ebx
sub edx, 1
mov dword [esp + 0x18], edx
shl eax, cl
lea edx, [eax - 1]
mov eax, ebx
sub eax, 4
shr eax, 2
mov dword [esp + 0x28], edx
lea edx, [ebx - 1]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], edx
lea edx, [ebx + 4]
mov dword [esp + 0x4c], ecx
shl ecx, 2
add eax, ebx
sub esi, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], eax
add eax, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov eax, 4
sub eax, ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], eax
add esi, ecx
mov dword [esp + 0x3c], esi
cmp ebp, 0xe
ja 0x4e857e
mov esi, dword [esp]
lea ecx, [ebp + 8]
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl edx, cl
mov ecx, ebp
add ebp, 0x10
shl eax, cl
add edx, eax
mov eax, esi
add eax, 2
add edi, edx
mov dword [esp], eax
mov eax, dword [esp + 0x18]
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 ebp, ecx
movzx ecx, dl
test ecx, ecx
je 0x4e85f6
test dl, 0x10
jne 0x4e8680
test dl, 0x40
jne 0x4e8975
mov esi, 1
jmp 0x4e85d2
test dl, 0x10
jne 0x4e8680
test dl, 0x40
jne 0x4e8975
mov edx, esi
shl edx, cl
sub edx, 1
and edx, edi
add edx, eax
lea ecx, [ebx + edx*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr edi, cl
sub ebp, ecx
movzx ecx, dl
test ecx, ecx
jne 0x4e85c0
mov esi, dword [esp + 4]
mov byte [esi], al
lea eax, [esi + 1]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x10]
cmp dword [esp], esi
jae 0x4e861a
mov esi, dword [esp + 0x14]
cmp dword [esp + 4], esi
jb 0x4e8557
mov edx, dword [esp]
mov eax, ebp
mov ecx, ebp
shr eax, 3
mov ebx, dword [esp + 4]
sub edx, eax
shl eax, 3
sub ecx, eax
mov eax, dword [esp + 0x98]
mov dword [eax], edx
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
sub eax, edx
add eax, 5
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
sub eax, ebx
mov ebx, dword [esp + 0xc]
add eax, 0x101
mov dword [esi + 0x10], eax
mov eax, 1
shl eax, cl
mov dword [ebx + 0x40], ecx
sub eax, 1
and eax, edi
mov dword [ebx + 0x3c], eax
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
and edx, 0xf
mov dword [esp + 8], eax
je 0x4e86c0
movzx eax, dl
cmp eax, ebp
mov esi, eax
jbe 0x4e86aa
mov eax, dword [esp]
mov ecx, ebp
add ebp, 8
movzx eax, byte [eax]
shl eax, cl
add edi, eax
mov eax, dword [esp]
add eax, 1
mov dword [esp], eax
mov ecx, edx
mov eax, 1
sub ebp, esi
shl eax, cl
sub eax, 1
and eax, edi
add dword [esp + 8], eax
shr edi, cl
cmp ebp, 0xe
jbe 0x4e8990
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
and eax, edi
lea ecx, [ecx + eax*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr edi, cl
sub ebp, ecx
test dl, 0x10
movzx ecx, dl
jne 0x4e8731
and edx, 0x40
jne 0x4e89e0
mov esi, dword [esp + 0x20]
jmp 0x4e8709
and edx, 0x40
jne 0x4e89e0
mov edx, 1
shl edx, cl
sub edx, 1
and edx, edi
add edx, eax
lea ecx, [esi + edx*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr edi, cl
sub ebp, ecx
test dl, 0x10
movzx ecx, dl
je 0x4e8700
and edx, 0xf
mov dword [esp + 0x5c], eax
mov esi, edx
movzx edx, dl
cmp edx, ebp
jbe 0x4e875e
mov eax, dword [esp]
mov ecx, ebp
movzx eax, byte [eax]
shl eax, cl
lea ecx, [ebp + 8]
add edi, eax
cmp edx, ecx
ja 0x4e8cb0
add dword [esp], 1
mov ebp, ecx
mov ecx, esi
mov eax, 1
sub ebp, edx
shl eax, cl
sub eax, 1
and eax, edi
shr edi, cl
mov esi, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x5c]
add eax, esi
mov esi, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 4]
sub eax, dword [esp + 0x30]
mov ecx, esi
cmp esi, eax
jbe 0x4e89fe
sub ecx, eax
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x64], ecx
jae 0x4e87b2
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x1bc4]
test edx, edx
jne 0x4e8e6a
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4e8a80
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 8]
mov eax, ecx
sub eax, esi
add eax, dword [esp + 0x1c]
cmp edx, esi
mov dword [esp + 0x60], eax
jbe 0x4e88f1
sub edx, esi
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
sub edx, esi
add eax, edx
add eax, dword [esp + 0x6c]
mov dword [esp + 0x74], edx
mov edx, ecx
mov ecx, dword [esp + 0x1c]
sub edx, eax
add ecx, edx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x24]
mov edx, ecx
add edx, 4
sub edx, eax
add edx, dword [esp + 0x1c]
cmp esi, edx
lea edx, [esi + 4]
setae byte [esp + 0x78]
cmp dword [esp + 0x70], edx
movzx eax, byte [esp + 0x78]
setae dl
or edx, eax
cmp dword [esp + 0x64], 9
seta byte [esp + 0x78]
movzx eax, byte [esp + 0x78]
test al, dl
je 0x4e8dd0
mov edx, ecx
sub edx, dword [esp + 0x74]
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x6c]
add edx, dword [esp + 0x1c]
or edx, esi
and edx, 3
jne 0x4e8dd0
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [eax - 4]
shr edx, 2
lea eax, [edx + 1]
xor edx, edx
mov dword [esp + 0x6c], eax
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x6c]
jb 0x4e8887
mov edx, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x5c]
mov eax, ecx
sub eax, esi
add edx, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
add eax, esi
cmp ecx, esi
je 0x4e88dd
movzx ecx, byte [eax]
mov byte [edx], cl
mov esi, dword [esp + 0x5c]
cmp esi, 1
je 0x4e88dd
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
je 0x4e88dd
movzx eax, byte [eax + 2]
mov byte [edx + 2], al
mov esi, dword [esp + 0x64]
add dword [esp + 4], esi
mov eax, dword [esp + 4]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x60], eax
cmp dword [esp + 8], 2
mov eax, dword [esp + 8]
jbe 0x4e8940
mov edx, dword [esp + 4]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x60]
nop
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 3
sub esi, 3
add edx, 3
mov byte [edx - 3], cl
movzx ecx, byte [eax - 2]
mov byte [edx - 2], cl
movzx ecx, byte [eax - 1]
cmp esi, 2
mov byte [edx - 1], cl
ja 0x4e8910
mov dword [esp + 0x60], eax
mov dword [esp + 4], edx
mov eax, esi
mov dword [esp + 8], esi
test eax, eax
je 0x4e8603
mov esi, dword [esp + 0x60]
cmp eax, 2
movzx edx, byte [esi]
mov esi, dword [esp + 4]
mov byte [esi], dl
jne 0x4e8da7
mov eax, dword [esp + 0x60]
movzx eax, byte [eax + 1]
mov byte [esi + 1], al
lea eax, [esi + 2]
mov dword [esp + 4], eax
jmp 0x4e8603
and edx, 0x20
je 0x4e89c0
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x3f3f
jmp 0x4e861a
mov esi, dword [esp]
lea ecx, [ebp + 8]
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl edx, cl
mov ecx, ebp
add ebp, 0x10
shl eax, cl
add edx, eax
mov eax, esi
add eax, 2
add edi, edx
mov dword [esp], eax
jmp 0x4e86c9
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x3f51
jmp 0x4e861a
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_distance_code
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x3f51
jmp 0x4e861a
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
mov dword [esp + 0x5c], ebx
mov eax, ecx
sub eax, dword [esp + 0x68]
mov dword [esp + 8], eax
jmp 0x4e8a28
mov dword [esp + 8], ebx
mov ecx, edx
mov eax, ebx
movzx edx, byte [eax]
lea ebx, [eax + 3]
sub esi, 3
cmp esi, 2
mov byte [ecx], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 1], dl
movzx eax, byte [ebx - 1]
lea edx, [ecx + 3]
mov byte [edx - 1], al
ja 0x4e8a20
test esi, esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x5c]
je 0x4e8ccc
movzx edx, byte [eax + 3]
cmp esi, 2
mov byte [ecx + 3], dl
jne 0x4e8db1
movzx eax, byte [eax + 4]
mov byte [ecx + 4], al
lea eax, [ecx + 5]
mov dword [esp + 4], eax
jmp 0x4e8603
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x64]
cmp edx, esi
jae 0x4e8cd5
mov ecx, dword [esp + 0x38]
mov eax, ecx
sub eax, esi
mov esi, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x64]
sub esi, edx
cmp eax, esi
mov dword [esp + 0x64], esi
jbe 0x4e88f1
sub eax, esi
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], edx
add eax, edx
mov edx, dword [esp + 0x6c]
add edx, eax
mov eax, edx
mov edx, ecx
mov ecx, dword [esp + 0x54]
sub edx, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
sub ecx, dword [esp + 0x70]
add eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
add edx, ecx
cmp dword [esp + 4], edx
mov edx, dword [esp + 4]
setae cl
add edx, 4
cmp eax, edx
setae dl
or edx, ecx
cmp esi, 9
seta cl
test dl, cl
je 0x4e8e31
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x74]
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x6c]
add edx, dword [esp + 0x1c]
or edx, dword [esp + 4]
and edx, 3
jne 0x4e8e31
lea edx, [esi - 4]
mov esi, dword [esp + 8]
shr edx, 2
lea eax, [edx + 1]
xor edx, edx
lea ecx, [eax*4]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x78]
jb 0x4e8b61
mov eax, ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x64]
lea edx, [eax + ecx]
mov eax, dword [esp + 0x60]
sub esi, ecx
mov dword [esp + 0x78], esi
add eax, ecx
cmp dword [esp + 0x64], ecx
je 0x4e8bb7
movzx ecx, byte [eax]
cmp esi, 1
mov byte [edx], cl
je 0x4e8bb7
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
je 0x4e8bb7
movzx eax, byte [eax + 2]
mov byte [edx + 2], al
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
add esi, ecx
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x2c]
cmp esi, edx
jae 0x4e8dbb
sub edx, esi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x70]
sub edx, esi
mov eax, edx
mov edx, ecx
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x58]
add eax, edx
cmp dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
setae dl
add eax, 4
cmp ecx, eax
setae al
or eax, edx
cmp esi, 9
seta dl
test al, dl
je 0x4e8e91
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x5c]
sub edx, esi
add eax, edx
add eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 4]
or eax, edx
test al, 3
jne 0x4e8e91
cmp dword [esp + 0x44], 2
jbe 0x4e8e88
mov esi, dword [esp + 8]
xor eax, eax
mov dword [esp + 4], ebx
mov ebx, dword [edx + eax*4]
mov dword [ecx + eax*4], ebx
add eax, 1
cmp eax, dword [esp + 0x4c]
jb 0x4e8c4b
mov dword [esp + 8], esi
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 4]
add eax, esi
cmp dword [esp + 0x2c], esi
je 0x4e8c97
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
movzx ecx, byte [edx]
cmp esi, 1
mov byte [eax], cl
je 0x4e8c97
movzx ecx, byte [edx + 1]
cmp esi, 2
mov byte [eax + 1], cl
je 0x4e8c97
movzx edx, byte [edx + 2]
mov byte [eax + 2], dl
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
sub eax, dword [esp + 0x68]
mov dword [esp + 0x60], eax
jmp 0x4e88f1
mov eax, dword [esp]
add ebp, 0x10
movzx eax, byte [eax + 1]
shl eax, cl
add edi, eax
mov eax, dword [esp]
add eax, 2
mov dword [esp], eax
jmp 0x4e875e
mov dword [esp + 4], edx
jmp 0x4e8603
mov eax, edx
mov ecx, edx
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
sub eax, edx
add eax, esi
cmp dword [esp + 8], edx
mov dword [esp + 0x60], eax
jbe 0x4e88f1
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 4]
sub dword [esp + 8], edx
mov edx, dword [esp + 0x5c]
add edx, eax
add edx, dword [esp + 0x6c]
sub ecx, edx
add ecx, esi
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x50]
sub ecx, edx
mov edx, ecx
add edx, esi
cmp dword [esp + 4], edx
mov edx, dword [esp + 4]
setae byte [esp + 0x74]
add edx, 4
cmp dword [esp + 0x70], edx
movzx ecx, byte [esp + 0x74]
setae dl
or edx, ecx
cmp dword [esp + 0x64], 9
seta byte [esp + 0x74]
movzx ecx, byte [esp + 0x74]
test cl, dl
je 0x4e8e04
mov edx, dword [esp + 0x2c]
sub edx, eax
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x6c]
add edx, esi
or edx, dword [esp + 4]
and edx, 3
jne 0x4e8e04
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [eax - 4]
shr edx, 2
lea eax, [edx + 1]
xor edx, edx
mov dword [esp + 0x6c], eax
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x6c]
jb 0x4e8d8f
jmp 0x4e889a
add dword [esp + 4], 1
jmp 0x4e8603
add dword [esp + 4], 4
jmp 0x4e8603
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
jmp 0x4e88f1
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 4]
add esi, ecx
mov eax, ecx
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 8]
add eax, 1
add edx, 1
movzx ecx, byte [eax - 1]
cmp dword [esp + 0x5c], eax
mov byte [edx - 1], cl
jne 0x4e8de8
mov dword [esp + 8], esi
jmp 0x4e88dd
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 4]
add esi, ecx
mov eax, ecx
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 8]
add eax, 1
add edx, 1
movzx ecx, byte [eax - 1]
cmp eax, dword [esp + 0x5c]
mov byte [edx - 1], cl
jne 0x4e8e1c
jmp 0x4e8dfb
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 4]
mov dword [esp + 0x78], ebx
lea ecx, [esi + eax]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x60]
add eax, 1
movzx ebx, byte [eax - 1]
add edx, 1
cmp eax, ecx
mov byte [edx - 1], bl
jne 0x4e8e4c
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x78]
jmp 0x4e8bb7
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x3f51
jmp 0x4e861a
mov eax, dword [esp + 0x64]
jmp 0x4e8c7a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 8]
add ecx, eax
mov dword [esp + 4], ecx
add eax, 1
add edx, 1
movzx ecx, byte [eax - 1]
cmp eax, dword [esp + 4]
mov byte [edx - 1], cl
jne 0x4e8ea7
mov dword [esp + 8], esi
jmp 0x4e8c97