Function at 0xbcf810
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 + 0x10], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 4]
lea eax, [edi + eax - 5]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0xc]
mov edi, eax
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x10]
mov edx, eax
sub edx, dword [esp + 0x9c]
lea eax, [edi + eax - 0x101]
mov dword [esp + 0xc], eax
mov eax, ebx
mov ebx, dword [ebx + 0x2c]
mov esi, dword [eax + 0x34]
mov ebp, dword [eax + 0x3c]
add edx, edi
mov edi, dword [eax + 0x30]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], esi
mov ebx, esi
mov dword [esp + 0x38], edi
mov edi, dword [eax + 0x38]
mov dword [esp + 0x18], edi
mov edi, dword [eax + 0x40]
mov esi, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x20], esi
mov esi, eax
mov eax, 1
mov dword [esp + 0x1c], edx
mov edx, eax
shl edx, cl
mov ecx, dword [esi + 0x5c]
sub edx, 1
mov dword [esp + 0x14], edx
shl eax, cl
mov ecx, dword [esp + 0x24]
lea edx, [eax - 1]
lea eax, [ebx - 4]
shr eax, 2
mov dword [esp + 0x2c], edx
add ecx, ebx
lea edx, [eax + 1]
lea eax, [ebx - 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
shl edx, 2
mov eax, ebx
mov dword [esp + 0x4c], edx
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
add eax, edx
lea edx, [ebx + 4]
mov dword [esp + 0x40], eax
lea eax, [ecx + 4]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov eax, 4
sub eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
cmp edi, 0xe
ja 0xbcf94e
mov esi, dword [esp + 4]
lea ecx, [edi + 8]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
shl eax, cl
mov ecx, edi
add edi, 0x10
shl edx, cl
add eax, edx
add ebp, eax
lea eax, [esi + 2]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
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 0xbcf9c6
test dl, 0x10
jne 0xbcfa73
test dl, 0x40
jne 0xbcfd34
mov esi, 1
jmp 0xbcf9a2
test dl, 0x10
jne 0xbcfa73
test dl, 0x40
jne 0xbcfd34
mov edx, esi
shl edx, cl
sub edx, 1
and edx, ebp
add eax, edx
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
jne 0xbcf990
mov esi, dword [esp]
mov byte [esi], al
lea eax, [esi + 1]
mov dword [esp], eax
mov esi, dword [esp + 8]
cmp dword [esp + 4], esi
jae 0xbcf9f0
mov esi, dword [esp + 0xc]
cmp dword [esp], esi
jb 0xbcf927
nop
lea esi, [esi]
mov ebx, dword [esp + 4]
mov eax, edi
and edi, 7
shr eax, 3
mov ecx, edi
mov edi, dword [esp]
mov edx, 1
sub ebx, eax
shl edx, cl
mov eax, ebx
mov ebx, dword [esp + 0x98]
sub edx, 1
and edx, ebp
mov dword [ebx], eax
mov dword [ebx + 0xc], edi
mov ebx, dword [esp + 8]
cmp ebx, eax
jbe 0xbcfd50
sub ebx, eax
mov eax, ebx
add eax, 5
mov ebx, dword [esp + 0x98]
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0xc]
mov eax, ebx
sub eax, edi
add eax, 0x101
cmp edi, ebx
jae 0xbcfa54
mov eax, ebx
sub eax, edi
add eax, 0x101
mov ebx, dword [esp + 0x98]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ecx
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
and edx, 0xf
mov dword [esp + 0x20], eax
je 0xbcfab6
movzx eax, dl
cmp eax, edi
mov esi, eax
jbe 0xbcfaa0
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 + 0x20], eax
shr ebp, cl
cmp edi, 0xe
jbe 0xbcfd60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
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 0xbcfb23
and edx, 0x40
jne 0xbcfdb0
mov esi, dword [esp + 0x1c]
jmp 0xbcfafb
and edx, 0x40
jne 0xbcfdb0
mov edx, 1
shl edx, cl
sub edx, 1
and edx, ebp
add eax, edx
lea ecx, [esi + 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
je 0xbcfaf2
and edx, 0xf
mov dword [esp + 0x28], eax
movzx eax, dl
cmp eax, edi
mov esi, eax
mov dword [esp + 0x60], eax
jbe 0xbcfb56
mov ecx, dword [esp + 4]
movzx eax, byte [ecx]
mov ecx, edi
shl eax, cl
lea ecx, [edi + 8]
add ebp, eax
cmp esi, ecx
ja 0xbcfe42
add dword [esp + 4], 1
mov edi, ecx
mov ecx, edx
mov eax, 1
sub edi, dword [esp + 0x60]
shl eax, cl
sub eax, 1
and eax, ebp
mov ecx, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, edx
shr ebp, cl
mov ecx, dword [esp]
sub ecx, dword [esp + 0x34]
mov dword [esp + 0x64], eax
cmp eax, ecx
mov dword [esp + 0x6c], ecx
jbe 0xbcfdce
sub eax, ecx
cmp dword [esp + 0x38], eax
mov dword [esp + 0x60], eax
jae 0xbcfbad
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x1bc4]
test edx, edx
jne 0xbd01f9
mov eax, dword [esp + 0x30]
test eax, eax
jne 0xbcfe5f
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x20]
mov eax, edx
sub eax, ecx
add eax, dword [esp + 0x18]
cmp esi, ecx
jbe 0xbcfccd
sub esi, ecx
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
add edx, ecx
add esi, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], esi
lea edx, [edx + ecx + 4]
add edx, dword [esp + 0x18]
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 0xbd0172
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, dword [esp + 0x28]
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x18]
or edx, dword [esp]
and edx, 3
jne 0xbd0172
lea edx, [esi - 4]
mov dword [esp + 0x68], eax
shr edx, 2
lea esi, [edx + 1]
xor edx, edx
lea ecx, [esi*4]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x28]
jb 0xbcfc6b
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], esi
mov esi, dword [esp]
mov eax, dword [esp + 0x68]
lea edx, [esi + ecx]
mov esi, dword [esp + 0x60]
add eax, ecx
sub esi, ecx
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x28], esi
je 0xbcfcbf
movzx ecx, byte [eax]
cmp esi, 1
mov byte [edx], cl
je 0xbcfcbf
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
je 0xbcfcbf
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]
mov esi, dword [esp + 0x20]
cmp esi, 2
jbe 0xbcfd09
mov edx, dword [esp]
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 0xbcfce0
mov dword [esp], edx
mov dword [esp + 0x20], esi
test esi, esi
je 0xbcf9d1
movzx edx, byte [eax]
mov ecx, dword [esp]
cmp esi, 2
mov byte [ecx], dl
jne 0xbd014e
movzx eax, byte [eax + 1]
mov byte [ecx + 1], al
lea eax, [ecx + 2]
mov dword [esp], eax
jmp 0xbcf9d1
and edx, 0x20
je 0xbcfd90
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0x3f3f
jmp 0xbcf9f0
sub ebx, eax
mov eax, ebx
add eax, 5
jmp 0xbcfa30
mov esi, dword [esp + 4]
lea ecx, [edi + 8]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
shl eax, cl
mov ecx, edi
add edi, 0x10
shl edx, cl
add eax, edx
add ebp, eax
lea eax, [esi + 2]
mov dword [esp + 4], eax
jmp 0xbcfabf
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0x3f51
jmp 0xbcf9f0
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_distance_code
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0x3f51
jmp 0xbcf9f0
mov edx, dword [esp]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov eax, edx
mov dword [esp + 0x28], edx
sub eax, dword [esp + 0x64]
jmp 0xbcfdeb
mov eax, ebx
mov dword [esp + 0x28], edx
movzx ebx, byte [eax]
sub esi, 3
add edx, 3
mov byte [edx - 3], bl
movzx ebx, byte [eax + 1]
mov byte [edx - 2], bl
lea ebx, [eax + 3]
movzx ecx, byte [ebx - 1]
cmp esi, 2
mov byte [edx - 1], cl
ja 0xbcfde5
test esi, esi
mov dword [esp], edx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
je 0xbcf9d1
movzx edx, byte [eax + 3]
cmp esi, 2
mov byte [ecx + 3], dl
jne 0xbd0157
movzx eax, byte [eax + 4]
lea esi, [ecx + 5]
mov dword [esp], esi
mov byte [ecx + 4], al
jmp 0xbcf9d1
mov esi, dword [esp + 4]
add edi, 0x10
movzx eax, byte [esi + 1]
shl eax, cl
add ebp, eax
mov eax, esi
add eax, 2
mov dword [esp + 4], eax
jmp 0xbcfb56
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
cmp edx, eax
jae 0xbd0089
mov esi, dword [esp + 0x3c]
mov ecx, eax
sub ecx, edx
sub esi, eax
mov eax, dword [esp + 0x18]
add eax, esi
mov esi, dword [esp + 0x20]
cmp esi, ecx
jbe 0xbcfccd
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x28]
sub esi, ecx
sub edx, dword [esp + 0x68]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], edx
add edx, esi
add ecx, edx
mov edx, dword [esp + 0x58]
add edx, dword [esp + 0x78]
add edx, dword [esp + 0x18]
mov dword [esp + 0x74], ecx
cmp dword [esp], edx
mov edx, dword [esp]
setae cl
add edx, 4
cmp dword [esp + 0x74], edx
setae dl
or edx, ecx
cmp dword [esp + 0x70], 9
seta cl
test dl, cl
je 0xbd01c9
mov edx, dword [esp + 0x6c]
add edx, esi
sub edx, dword [esp + 0x28]
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x18]
or edx, dword [esp]
and edx, 3
jne 0xbd01c9
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
lea edx, [ecx - 4]
shr edx, 2
lea esi, [edx + 1]
xor edx, edx
lea ecx, [esi*4]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x80], 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 + 0x78]
jb 0xbcff30
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], esi
mov esi, dword [esp]
mov eax, dword [esp + 0x7c]
lea edx, [esi + ecx]
mov esi, dword [esp + 0x70]
add eax, ecx
sub esi, ecx
cmp dword [esp + 0x70], ecx
mov dword [esp + 0x74], esi
je 0xbcff87
movzx ecx, byte [eax]
cmp esi, 1
mov byte [edx], cl
je 0xbcff87
movzx ecx, byte [eax + 1]
cmp esi, 2
mov byte [edx + 1], cl
je 0xbcff87
movzx eax, byte [eax + 2]
mov byte [edx + 2], al
mov ecx, dword [esp + 0x70]
mov esi, dword [esp]
mov edx, dword [esp + 0x30]
add ecx, esi
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jae 0xbd0162
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x6c]
sub ecx, edx
add eax, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, eax
add eax, dword [esp + 0x5c]
sub ecx, edx
mov edx, ecx
mov ecx, dword [esp + 0x18]
add edx, esi
add eax, esi
mov dword [esp + 0x74], edx
cmp ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x30]
setae dl
add eax, 4
cmp dword [esp + 0x74], eax
setae al
or eax, edx
cmp ecx, 9
seta dl
test al, dl
je 0xbd0220
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
add edx, ecx
sub eax, edx
add eax, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
add eax, esi
or eax, edx
test al, 3
jne 0xbd0220
cmp dword [esp + 0x48], 2
jbe 0xbd0217
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], edx
xor eax, eax
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [esp + 0x50]
jb 0xbd002a
mov eax, dword [esp + 0x4c]
add dword [esp + 0x70], eax
cmp dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
je 0xbcfcbf
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
movzx edx, byte [eax]
mov ecx, dword [esp + 0x70]
cmp esi, 1
mov byte [ecx], dl
je 0xbcfcbf
movzx edx, byte [eax + 1]
cmp esi, 2
mov byte [ecx + 1], dl
je 0xbcfcbf
movzx eax, byte [eax + 2]
mov byte [ecx + 2], al
jmp 0xbcfcbf
mov ecx, eax
mov esi, edx
mov eax, edx
mov edx, dword [esp + 0x20]
sub eax, ecx
add eax, dword [esp + 0x18]
cmp edx, ecx
jbe 0xbcfccd
sub edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x28]
mov ecx, edx
sub ecx, dword [esp + 0x68]
lea edx, [esi + ecx]
mov esi, dword [esp + 0x18]
add esi, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], esi
add edx, ecx
add edx, dword [esp + 0x18]
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 0xbd01a3
mov edx, dword [esp + 0x6c]
add edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x18]
or edx, dword [esp]
and edx, 3
jne 0xbd01a3
lea edx, [esi - 4]
mov dword [esp + 0x68], eax
shr edx, 2
lea esi, [edx + 1]
xor edx, edx
lea ecx, [esi*4]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, dword [esp + 0x28]
jb 0xbd0136
jmp 0xbcfc7e
add dword [esp], 1
jmp 0xbcf9d1
lea eax, [ecx + 4]
mov dword [esp], eax
jmp 0xbcf9d1
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
mov dword [esp], esi
jmp 0xbcfccd
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x24]
mov edx, dword [esp]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
add eax, 1
movzx ebx, byte [eax - 1]
add edx, 1
cmp ecx, eax
mov byte [edx - 1], bl
jne 0xbd0185
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x28]
jmp 0xbcfcbf
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x30]
mov edx, dword [esp]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
add eax, 1
movzx ebx, byte [eax - 1]
add edx, 1
cmp eax, ecx
mov byte [edx - 1], bl
jne 0xbd01b6
jmp 0xbd0196
mov esi, dword [esp + 0x70]
mov edx, dword [esp]
mov dword [esp + 0x74], ebx
lea ecx, [eax + esi]
mov esi, dword [esp + 0x20]
add eax, 1
movzx ebx, byte [eax - 1]
add edx, 1
cmp ecx, eax
mov byte [edx - 1], bl
jne 0xbd01db
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x74]
jmp 0xbcff87
mov eax, dword [esp + 0x98]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0x3f51
jmp 0xbcf9f0
mov eax, edx
mov esi, ecx
jmp 0xbd005b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x20], edx
add eax, 1
add ecx, 1
movzx edx, byte [eax - 1]
cmp dword [esp + 0x20], eax
mov byte [ecx - 1], dl
jne 0xbd0236
mov dword [esp + 0x20], esi
jmp 0xbcfcbf