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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov eax, dword [edx + 0x6c]
mov dword [ebp - 0x2c], eax
lea esi, [esi]
cmp dword [ebp - 0x2c], 0x105
jbe 0x50ca90
cmp dword [ebp - 0x2c], 2
jbe 0x50cc60
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x50]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x30]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 0x28], ecx
movzx edi, byte [edx + ecx + 2]
mov edx, dword [ebp + 8]
xor eax, edi
mov edi, dword [ebp + 8]
mov esi, dword [edx + 0x4c]
mov ebx, dword [edi + 0x2c]
and eax, esi
mov esi, ecx
and esi, ebx
mov dword [edx + 0x40], eax
mov ebx, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
mov edi, dword [ebp - 0x28]
movzx edx, word [ebx + eax*2]
mov word [ecx + esi*2], dx
mov dword [ebp - 0x10], edx
mov word [ebx + eax*2], di
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x58]
mov dword [ecx + 0x58], 2
mov esi, dword [ecx + 0x68]
test ebx, ebx
mov dword [ecx + 0x70], edx
mov dword [ecx + 0x5c], esi
je 0x50c8a0
cmp edx, dword [ecx + 0x78]
jae 0x50c8a0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x24]
sub ecx, edi
sub eax, 0x106
cmp ecx, eax
ja 0x50c8a0
mov eax, dword [ebx + 0x80]
cmp eax, 1
jle 0x50cdbf
cmp eax, 3
je 0x50cd4a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x58]
cmp eax, 5
ja 0x50c8a0
cmp dword [ecx + 0x80], 1
je 0x50cda3
cmp eax, 3
je 0x50cd90
lea esi, [esi]
lea edi, [edi]
cmp edx, 2
jbe 0x50cb87
mov edi, dword [ebp + 8]
cmp dword [edi + 0x58], edx
ja 0x50cb87
mov ebx, dword [edi + 0x5c]
sub dl, 3
mov esi, dword [ebp - 0x28]
sub dword [ebp - 0x28], ebx
mov ecx, dword [edi + 0x6c]
mov byte [ebp - 0x1d], dl
mov eax, dword [edi + 0x169c]
mov edx, dword [ebp - 0x28]
add esi, ecx
movzx ecx, byte [ebp - 0x1d]
sub esi, 3
mov ebx, dword [edi + 0x1690]
mov dword [ebp - 0x1c], esi
mov esi, dword [edi + 0x1698]
dec edx
movzx edx, dx
mov word [eax + esi*2], dx
dec edx
mov byte [esi + ebx], cl
movzx ecx, dx
movzx eax, byte [ebp - 0x1d]
inc dword [edi + 0x1698]
movzx edx, byte [eax + 0x55bdf0]
movzx ebx, word [edi + edx*4 + 0x490]
inc ebx
cmp cx, 0xff
mov word [edi + edx*4 + 0x490], bx
ja 0x50ccac
movzx eax, byte [ecx + 0x55bef0]
cmp cx, 0xff
lea edx, [eax*4 + 0x980]
ja 0x50cc9d
movzx eax, byte [ecx + 0x55bef0]
mov ebx, dword [ebp + 8]
lea eax, [eax*4 + 0x980]
movzx esi, word [eax + ebx]
inc esi
mov word [edx + ebx], si
mov edi, dword [ebx + 0x1694]
mov esi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x6c]
dec edi
cmp dword [ebx + 0x1698], edi
sete dl
movzx ecx, dl
mov dword [ebp - 0x14], ecx
sub eax, esi
mov edx, dword [ebx + 0x64]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebx + 0x6c], eax
lea eax, [esi - 2]
mov esi, eax
mov dword [ebp - 0x30], edx
mov esi, esi
lea edi, [edi]
mov edi, dword [ebp - 0x30]
inc edi
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edi
ja 0x50c9e6
mov edx, dword [ebp + 8]
mov ebx, edx
mov dword [edx + 0x70], eax
mov ecx, dword [edx + 0x50]
mov dword [edx + 0x64], edi
mov eax, dword [edx + 0x40]
mov edx, dword [edx + 0x30]
shl eax, cl
movzx ecx, byte [edx + edi + 2]
mov edx, dword [ebx + 0x4c]
xor eax, ecx
and eax, edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0x40], eax
mov ebx, edi
mov ecx, dword [edx + 0x2c]
and ebx, ecx
mov ecx, dword [edx + 0x38]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x3c], edx
movzx edx, word [edx + eax*2]
mov word [ecx + ebx*2], dx
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
mov word [ebx + eax*2], di
lea eax, [esi - 1]
test eax, eax
mov esi, eax
jne 0x50c990
lea eax, [edi + 1]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
test edi, edi
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x58], 2
mov dword [ebx + 0x64], eax
je 0x50c7c0
xor esi, esi
mov dword [esp + 0xc], esi
mov edx, dword [ebx + 0x54]
sub eax, edx
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
js 0x50ca32
mov eax, dword [ebx + 0x30]
add eax, edx
mov dword [esp + 4], eax
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym.__tr_flush_block
mov ebx, dword [edi]
mov eax, dword [edi + 0x64]
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [ecx + 0x14]
cmp eax, esi
jae 0x50ca58
mov esi, eax
test esi, esi
jne 0x50cd07
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x50cc52
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0x105
ja 0x50c7cd
jmp 0x50ca90
mov eax, dword [ebp + 8]
call sym._fill_window
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x6c]
cmp ecx, 0x105
mov dword [ebp - 0x2c], ecx
setbe al
xor edx, edx
cmp dword [ebp + 0xc], 0
sete dl
test eax, edx
jne 0x50cc52
test ecx, ecx
jne 0x50c7cd
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x60]
test esi, esi
je 0x50cb14
mov eax, dword [ecx + 0x30]
mov edi, dword [ecx + 0x64]
mov edx, dword [ecx + 0x1698]
mov esi, dword [ecx + 0x169c]
movzx ebx, byte [eax + edi - 1]
mov eax, dword [ecx + 0x1690]
mov word [esi + edx*2], 0
movzx edi, bl
mov byte [edx + eax], bl
inc dword [ecx + 0x1698]
movzx ebx, word [ecx + edi*4 + 0x8c]
inc ebx
mov word [ecx + edi*4 + 0x8c], bx
mov dword [ecx + 0x60], 0
xor ebx, ebx
cmp dword [ebp + 0xc], 4
sete bl
xor eax, eax
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x64]
sub ecx, edx
test edx, edx
mov dword [esp + 8], ecx
js 0x50cb3b
mov eax, dword [ebx + 0x30]
add eax, edx
mov dword [esp + 4], eax
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym.__tr_flush_block
mov ebx, dword [esi]
mov edx, dword [esi + 0x64]
mov ecx, dword [ebx + 0x1c]
mov dword [esi + 0x54], edx
mov eax, dword [ebx + 0x10]
mov esi, dword [ecx + 0x14]
cmp eax, esi
jae 0x50cb61
mov esi, eax
test esi, esi
jne 0x50ce8c
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x50ce70
xor eax, eax
cmp dword [ebp + 0xc], 4
sete al
add esp, 0x4c
pop ebx
add eax, eax
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x60]
test ebx, ebx
je 0x50cc70
mov eax, dword [ecx + 0x30]
mov edi, dword [ebp - 0x28]
mov edx, dword [ecx + 0x1698]
mov esi, dword [ecx + 0x169c]
movzx ebx, byte [eax + edi - 1]
mov edi, dword [ecx + 0x1690]
mov word [esi + edx*2], 0
movzx esi, bl
mov byte [edx + edi], bl
inc dword [ecx + 0x1698]
movzx eax, word [ecx + esi*4 + 0x8c]
inc eax
mov word [ecx + esi*4 + 0x8c], ax
mov edi, dword [ecx + 0x1694]
dec edi
cmp dword [ecx + 0x1698], edi
jne 0x50cc93
xor edx, edx
xor eax, eax
mov dword [esp + 0xc], edx
mov edx, dword [ecx + 0x54]
mov ebx, dword [ecx + 0x64]
sub ebx, edx
test edx, edx
mov dword [esp + 8], ebx
js 0x50cc05
mov eax, dword [ecx + 0x30]
add eax, edx
mov dword [esp + 4], eax
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym.__tr_flush_block
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x64]
mov ebx, dword [ecx]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x10]
mov esi, dword [ecx + 0x14]
cmp edx, esi
jae 0x50cc2e
mov esi, edx
test esi, esi
jne 0x50ccbd
mov ecx, dword [ebp + 8]
inc eax
mov esi, dword [ecx + 0x6c]
mov dword [ecx + 0x64], eax
dec esi
mov dword [ecx + 0x6c], esi
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], esi
test eax, eax
jne 0x50c7c0
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x28], eax
jmp 0x50c821
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edi, dword [ebx + 0x6c]
inc edx
mov dword [eax + 0x60], 1
dec edi
mov dword [ebx + 0x64], edx
mov dword [ebp - 0x2c], edi
mov dword [ebx + 0x6c], edi
jmp 0x50c7c0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x64]
mov ebx, dword [edi]
jmp 0x50cc36
shr ecx, 7
movzx eax, byte [ecx + 0x55bff0]
jmp 0x50c944
mov edi, ecx
shr edi, 7
movzx eax, byte [edi + 0x55bff0]
jmp 0x50c92b
mov edx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memcpy
sub dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x1c]
add dword [ebx + 0xc], esi
add dword [ebx + 0x14], esi
mov edi, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
sub edi, esi
add ecx, esi
test edi, edi
mov dword [edx + 0x14], edi
jne 0x50cd80
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov dword [edx + 0x10], ebx
mov eax, dword [ecx + 0x64]
mov ebx, dword [ecx]
jmp 0x50cc36
mov edx, dword [ebx + 0xc]
mov edi, dword [ecx + 0x10]
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], edi
call sym._memcpy
sub dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x1c]
add dword [ebx + 0xc], esi
add dword [ebx + 0x14], esi
mov ebx, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
sub ebx, esi
add ecx, esi
test ebx, ebx
mov dword [edx + 0x14], ebx
jne 0x50cdb2
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 8]
mov ebx, dword [ecx]
mov dword [edx + 0x10], esi
jmp 0x50ca60
dec ecx
jne 0x50c872
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30]
lea ecx, [eax + ebx]
lea ebx, [eax + edi]
movzx eax, byte [ecx]
lea esi, [ecx + 0x102]
cmp byte [ebx], al
je 0x50cdda
mov eax, 2
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x58], eax
jmp 0x50c872
mov dword [edx + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
mov ebx, dword [edx]
jmp 0x50cc36
mov eax, dword [ebp - 0x28]
mov esi, dword [ecx + 0x68]
sub eax, esi
cmp eax, 0x1000
jbe 0x50c8a0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], 2
jmp 0x50c8a0
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
jmp 0x50ca60
mov edx, dword [ebp - 0x10]
mov eax, ebx
call sym._longest_match
mov dword [ebx + 0x58], eax
mov edx, dword [ebx + 0x64]
mov dword [ebp - 0x28], edx
mov edx, dword [ebx + 0x70]
jmp 0x50c872
movzx eax, byte [ecx + 1]
cmp byte [ebx + 1], al
jne 0x50cd70
add ecx, 2
add ebx, 2
movzx eax, byte [ebx + 1]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
movzx eax, byte [ebx + 2]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
movzx eax, byte [ebx + 3]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
movzx eax, byte [ebx + 4]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
movzx eax, byte [ebx + 5]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
movzx eax, byte [ebx + 6]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
movzx eax, byte [ebx + 7]
inc ecx
cmp byte [ecx], al
jne 0x50ce37
add ebx, 8
inc ecx
movzx eax, byte [ebx]
cmp byte [ecx], al
jne 0x50ce37
cmp ecx, esi
jb 0x50cde9
sub esi, ecx
mov ecx, 0x102
sub ecx, esi
cmp ecx, 2
mov eax, 2
jle 0x50cd75
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
cmp eax, ecx
mov dword [esi + 0x68], edi
jbe 0x50cd75
mov eax, ecx
jmp 0x50cd75
cmp dword [ebp + 0xc], 4
mov eax, 3
je 0x50cc54
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memcpy
sub dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x1c]
add dword [ebx + 0xc], esi
add dword [ebx + 0x14], esi
mov edi, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
sub edi, esi
add ecx, esi
test edi, edi
mov dword [edx + 0x14], edi
jne 0x50cecf
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov dword [edx + 0x10], ebx
mov ebx, dword [ecx]
jmp 0x50cb69
mov dword [edx + 0x10], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
jmp 0x50cb69