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

Disassembly:
push ebp
push edi
push esi
push ebx
add esp, 0xffffff80
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x1c]
mov ebx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 4]
lea eax, [edi + eax - 5]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0xc]
mov edi, eax
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x10]
mov edx, eax
lea eax, [edi + eax - 0x101]
sub edx, dword [esp + 0x98]
mov dword [esp + 0x10], eax
mov eax, ebx
mov ebx, dword [ebx + 0x2c]
mov esi, dword [eax + 0x38]
mov ebp, dword [eax + 0x3c]
add edx, edi
mov edi, dword [eax + 0x30]
mov dword [esp + 0x24], ebx
mov ebx, dword [eax + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], esi
mov esi, eax
mov dword [esp + 0x34], edi
mov edi, dword [eax + 0x40]
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 edi, 0xe
ja 0x587d4d
mov esi, dword [esp + 4]
lea ecx, [edi + 8]
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl edx, cl
mov ecx, edi
add edi, 0x10
shl eax, cl
add edx, eax
mov eax, esi
add eax, 2
add ebp, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
and eax, ebp
lea ecx, [ebx + eax*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr ebp, cl
sub edi, ecx
movzx ecx, dl
test ecx, ecx
je 0x587dbb
test dl, 0x10
jne 0x587e62
test dl, 0x40
jne 0x5880b0
mov esi, 1
jmp 0x587d97
test dl, 0x10
jne 0x587e62
test dl, 0x40
jne 0x5880b0
mov edx, esi
shl edx, cl
sub edx, 1
and edx, ebp
add edx, eax
lea ecx, [ebx + edx*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr ebp, cl
sub edi, ecx
movzx ecx, dl
test ecx, ecx
jne 0x587d85
mov esi, dword [esp]
mov byte [esi], al
lea eax, [esi + 1]
mov dword [esp], eax
mov esi, dword [esp + 0xc]
cmp dword [esp + 4], esi
jae 0x587de0
mov esi, dword [esp + 0x10]
cmp dword [esp], esi
jb 0x587d24
lea esi, [esi]
mov eax, dword [esp + 4]
mov edx, edi
mov ebx, dword [esp + 0x94]
shr edx, 3
sub eax, edx
shl edx, 3
sub edi, edx
mov dword [ebx], eax
mov edx, 1
mov ecx, edi
mov edi, dword [esp]
shl edx, cl
sub edx, 1
mov dword [ebx + 0xc], edi
mov ebx, dword [esp + 0xc]
and edx, ebp
cmp ebx, eax
jbe 0x5880c5
sub ebx, eax
mov esi, edi
mov eax, ebx
add eax, 5
mov ebx, dword [esp + 0x94]
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
add eax, 0x101
cmp esi, ebx
jae 0x587e46
mov eax, ebx
sub eax, esi
add eax, 0x101
mov ebx, dword [esp + 0x94]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ecx
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
pop ebp
ret
and edx, 0xf
mov dword [esp + 8], eax
je 0x587ea5
movzx eax, dl
cmp eax, edi
mov esi, eax
jbe 0x587e8f
mov eax, dword [esp + 4]
mov ecx, edi
add edi, 8
movzx eax, byte [eax]
shl eax, cl
add ebp, eax
mov eax, dword [esp + 4]
add eax, 1
mov dword [esp + 4], eax
mov ecx, edx
mov eax, 1
sub edi, esi
shl eax, cl
sub eax, 1
and eax, ebp
add dword [esp + 8], eax
shr ebp, cl
cmp edi, 0xe
jbe 0x5880d3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
and eax, ebp
lea ecx, [ecx + eax*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr ebp, cl
sub edi, ecx
test dl, 0x10
movzx ecx, dl
jne 0x587f12
and edx, 0x40
jne 0x588120
mov esi, dword [esp + 0x20]
jmp 0x587eea
and edx, 0x40
jne 0x588120
mov edx, 1
shl edx, cl
sub edx, 1
and edx, ebp
add edx, eax
lea ecx, [esi + edx*4]
movzx edx, byte [ecx]
movzx eax, word [ecx + 2]
movzx ecx, byte [ecx + 1]
shr ebp, cl
sub edi, ecx
test dl, 0x10
movzx ecx, dl
je 0x587ee1
and edx, 0xf
mov dword [esp + 0x5c], eax
mov esi, edx
movzx edx, dl
cmp edx, edi
jbe 0x587f41
mov eax, dword [esp + 4]
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
lea ecx, [edi + 8]
add ebp, eax
cmp edx, ecx
ja 0x588337
add dword [esp + 4], 1
mov edi, ecx
mov ecx, esi
mov eax, 1
sub edi, edx
shl eax, cl
sub eax, 1
and eax, ebp
shr ebp, cl
mov ecx, dword [esp]
mov esi, eax
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x5c]
add eax, esi
mov edx, ecx
mov dword [esp + 0x6c], ecx
cmp eax, ecx
mov dword [esp + 0x64], eax
jbe 0x58813e
mov ecx, eax
sub ecx, edx
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x60], ecx
jae 0x587f98
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x1bc4]
test edx, edx
jne 0x588602
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x5881b3
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 8]
mov eax, ecx
sub eax, esi
add eax, dword [esp + 0x1c]
cmp edx, esi
jbe 0x5882d1
sub edx, esi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x68]
lea esi, [ecx + edx]
lea edx, [ecx + edx + 4]
add edx, dword [esp + 0x1c]
add esi, dword [esp + 0x1c]
cmp dword [esp], edx
mov edx, dword [esp]
setae byte [esp + 0x74]
add edx, 4
mov dword [esp + 0x70], esi
cmp esi, edx
mov esi, dword [esp + 0x60]
setae dl
or dl, byte [esp + 0x74]
cmp esi, 9
seta byte [esp + 0x74]
test byte [esp + 0x74], dl
je 0x588581
mov edx, dword [esp + 0x6c]
add edx, ecx
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x1c]
or edx, dword [esp]
and edx, 3
jne 0x588581
lea edx, [esi - 4]
mov ecx, dword [esp]
mov dword [esp + 0x6c], eax
shr edx, 2
lea esi, [edx + 1]
xor edx, edx
mov dword [esp + 0x68], esi
shl esi, 2
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x68]
jb 0x588051
mov edx, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
add edx, ecx
sub esi, ecx
add eax, ecx
cmp dword [esp + 0x60], ecx
je 0x5882c3
movzx ecx, byte [eax]
cmp esi, 1
mov byte [edx], cl
je 0x5882c3
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
jne 0x5882bc
jmp 0x5882c3
and edx, 0x20
je 0x588100
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0x3f3f
jmp 0x587de0
sub ebx, eax
mov esi, edi
mov eax, ebx
add eax, 5
jmp 0x587e22
mov esi, dword [esp + 4]
lea ecx, [edi + 8]
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl edx, cl
mov ecx, edi
add edi, 0x10
shl eax, cl
add edx, eax
mov eax, esi
add eax, 2
add ebp, edx
mov dword [esp + 4], eax
jmp 0x587eae
mov eax, dword [esp + 0x94]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0x3f51
jmp 0x587de0
mov eax, dword [esp + 0x94]
mov dword [eax + 0x18], str.invalid_distance_code
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0x3f51
jmp 0x587de0
mov ecx, dword [esp]
mov esi, dword [esp + 8]
mov dword [esp + 0x5c], ebx
mov eax, ecx
sub eax, dword [esp + 0x64]
mov dword [esp + 8], eax
jmp 0x58815d
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 0x588155
test esi, esi
mov dword [esp], ecx
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x5c]
je 0x588356
movzx edx, byte [eax + 3]
cmp esi, 2
mov byte [ecx + 3], dl
jne 0x58856f
movzx eax, byte [eax + 4]
mov byte [ecx + 4], al
lea eax, [ecx + 5]
mov dword [esp], eax
jmp 0x587dc6
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x60]
cmp edx, esi
jb 0x58835e
mov eax, edx
mov esi, edx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
sub eax, edx
add eax, ecx
cmp dword [esp + 8], edx
jbe 0x5882d1
sub dword [esp + 8], edx
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x68]
add esi, edx
add edx, dword [esp + 0x50]
add esi, ecx
mov dword [esp + 0x70], esi
add edx, ecx
cmp dword [esp], edx
mov edx, dword [esp]
setae byte [esp + 0x74]
add edx, 4
movzx ecx, byte [esp + 0x74]
cmp esi, edx
mov esi, dword [esp + 0x60]
setae dl
or edx, ecx
cmp esi, 9
seta byte [esp + 0x74]
movzx ecx, byte [esp + 0x74]
test cl, dl
je 0x5885d6
mov edx, dword [esp + 0x6c]
add edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x1c]
or edx, dword [esp]
and edx, 3
jne 0x5885d6
lea edx, [esi - 4]
mov ecx, dword [esp]
mov dword [esp + 0x6c], eax
shr edx, 2
lea esi, [edx + 1]
xor edx, edx
mov dword [esp + 0x68], esi
shl esi, 2
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x68]
jb 0x58826f
mov edx, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add edx, esi
sub ecx, esi
add eax, esi
cmp dword [esp + 0x60], esi
mov dword [esp + 0x5c], ecx
je 0x5882c3
mov esi, ecx
movzx ecx, byte [eax]
cmp esi, 1
mov byte [edx], cl
je 0x5882c3
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
je 0x5882c3
movzx eax, byte [eax + 2]
mov byte [edx + 2], al
mov esi, dword [esp + 0x60]
add dword [esp], esi
mov eax, dword [esp]
sub eax, dword [esp + 0x64]
cmp dword [esp + 8], 2
mov esi, dword [esp + 8]
jbe 0x58830c
mov edx, dword [esp]
mov esi, dword [esp + 8]
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 0x5882e3
mov dword [esp], edx
mov dword [esp + 8], esi
test esi, esi
je 0x587dc6
movzx edx, byte [eax]
mov ecx, dword [esp]
cmp esi, 2
mov byte [ecx], dl
jne 0x588566
movzx eax, byte [eax + 1]
mov byte [ecx + 1], al
lea eax, [ecx + 2]
mov dword [esp], eax
jmp 0x587dc6
mov eax, dword [esp + 4]
add edi, 0x10
movzx eax, byte [eax + 1]
shl eax, cl
add ebp, eax
mov eax, dword [esp + 4]
add eax, 2
mov dword [esp + 4], eax
jmp 0x587f41
mov dword [esp], edx
jmp 0x587dc6
mov eax, dword [esp + 0x38]
mov ecx, esi
sub ecx, edx
sub eax, esi
mov esi, dword [esp + 8]
add eax, dword [esp + 0x1c]
cmp esi, ecx
jbe 0x5882d1
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x5c]
sub esi, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 8], esi
mov esi, dword [esp + 0x1c]
mov ecx, edx
sub ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
add edx, ecx
add esi, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x74], esi
add edx, ecx
add edx, dword [esp + 0x1c]
cmp dword [esp], edx
mov edx, dword [esp]
setae cl
add edx, 4
cmp esi, edx
mov esi, dword [esp + 0x60]
setae dl
or edx, ecx
cmp esi, 9
seta cl
test dl, cl
je 0x5885aa
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x1c]
or edx, dword [esp]
and edx, 3
jne 0x5885aa
lea edx, [esi - 4]
mov dword [esp + 0x78], eax
shr edx, 2
lea esi, [edx + 1]
xor edx, edx
lea ecx, [esi*4]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp]
mov eax, dword [esp + 0x74]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x70]
jb 0x588416
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], esi
mov esi, dword [esp]
mov eax, dword [esp + 0x78]
lea edx, [esi + ecx]
mov esi, dword [esp + 0x60]
add eax, ecx
sub esi, ecx
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x70], esi
je 0x58846a
movzx ecx, byte [eax]
cmp esi, 1
mov byte [edx], cl
je 0x58846a
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
je 0x58846a
movzx eax, byte [eax + 2]
mov byte [edx + 2], al
mov esi, dword [esp]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 8]
add ecx, esi
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, edx
jae 0x588578
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x6c]
sub edx, ecx
add eax, dword [esp + 0x68]
mov dword [esp + 8], edx
mov edx, eax
add eax, dword [esp + 0x58]
sub edx, ecx
add edx, esi
mov dword [esp + 0x60], edx
add eax, esi
cmp dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
setae dl
add eax, 4
cmp dword [esp + 0x60], eax
setae al
or eax, edx
cmp ecx, 9
seta dl
test al, dl
je 0x588620
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
add edx, ecx
sub eax, edx
add eax, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
add eax, esi
or eax, edx
test al, 3
jne 0x588620
cmp dword [esp + 0x44], 2
jbe 0x5885f8
mov esi, dword [esp + 8]
mov dword [esp + 8], edx
xor eax, eax
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [esp + 0x4c]
jb 0x588506
mov dword [esp + 8], esi
mov eax, dword [esp]
mov esi, dword [esp + 0x48]
add eax, esi
cmp dword [esp + 0x2c], esi
je 0x588551
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
movzx ecx, byte [edx]
cmp esi, 1
mov byte [eax], cl
je 0x588551
movzx ecx, byte [edx + 1]
cmp esi, 2
mov byte [eax + 1], cl
je 0x588551
movzx edx, byte [edx + 2]
mov byte [eax + 2], dl
mov ecx, dword [esp]
add ecx, dword [esp + 0x2c]
mov eax, ecx
mov dword [esp], ecx
sub eax, dword [esp + 0x64]
jmp 0x5882d1
add dword [esp], 1
jmp 0x587dc6
add dword [esp], 4
jmp 0x587dc6
mov eax, dword [esp + 0x1c]
jmp 0x5882d1
add esi, eax
mov edx, dword [esp]
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 0x58858e
mov dword [esp + 8], esi
jmp 0x5882c3
lea ecx, [eax + esi]
mov edx, dword [esp]
mov esi, dword [esp + 8]
mov dword [esp + 0x70], ebx
add eax, 1
movzx ebx, byte [eax - 1]
add edx, 1
cmp eax, ecx
mov byte [edx - 1], bl
jne 0x5885b8
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x70]
jmp 0x58846a
add esi, eax
mov edx, dword [esp]
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 0x5885e3
jmp 0x5885a1
mov esi, ecx
mov eax, dword [esp]
jmp 0x588534
mov eax, dword [esp + 0x94]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0x3f51
jmp 0x587de0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp]
add esi, eax
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 0x588635
mov dword [esp + 8], esi
jmp 0x588551